mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 13:18:55 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
269aaa8637
@ -85,6 +85,9 @@ const commonOptions = {
|
|||||||
type: 'void',
|
type: 'void',
|
||||||
'x-editable': false,
|
'x-editable': false,
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
|
'x-decorator-props': {
|
||||||
|
engine: 'handlebars',
|
||||||
|
},
|
||||||
// 'x-designer': 'Markdown.Void.Designer',
|
// 'x-designer': 'Markdown.Void.Designer',
|
||||||
'x-toolbar': 'FormItemSchemaToolbar',
|
'x-toolbar': 'FormItemSchemaToolbar',
|
||||||
'x-settings': 'blockSettings:markdown',
|
'x-settings': 'blockSettings:markdown',
|
||||||
|
@ -23,6 +23,9 @@ export const MarkdownFormItemInitializer = () => {
|
|||||||
type: 'void',
|
type: 'void',
|
||||||
'x-editable': false,
|
'x-editable': false,
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
|
'x-decorator-props': {
|
||||||
|
engine: 'handlebars',
|
||||||
|
},
|
||||||
// 'x-designer': 'Markdown.Void.Designer',
|
// 'x-designer': 'Markdown.Void.Designer',
|
||||||
'x-toolbar': 'FormItemSchemaToolbar',
|
'x-toolbar': 'FormItemSchemaToolbar',
|
||||||
'x-settings': 'blockSettings:markdown',
|
'x-settings': 'blockSettings:markdown',
|
||||||
|
@ -95,7 +95,7 @@ const MarkdownEditor = (props: MarkdownEditorProps) => {
|
|||||||
<VariableSelect options={options} setOptions={setOptions} onInsert={onInsert} />
|
<VariableSelect options={options} setOptions={setOptions} onInsert={onInsert} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Space style={{ position: 'absolute', bottom: 25, right: 5 }}>
|
<Space style={{ position: 'absolute', bottom: 30, right: 5 }}>
|
||||||
<Button
|
<Button
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
props.onCancel?.(e);
|
props.onCancel?.(e);
|
||||||
|
@ -38,6 +38,7 @@ export function SchemaSettingsRenderEngine() {
|
|||||||
options={options}
|
options={options}
|
||||||
value={field.decoratorProps.engine || 'string'}
|
value={field.decoratorProps.engine || 'string'}
|
||||||
onChange={(engine) => {
|
onChange={(engine) => {
|
||||||
|
fieldSchema['x-decorator-props'] = fieldSchema['x-decorator-props'] || {};
|
||||||
fieldSchema['x-decorator-props'].engine = engine;
|
fieldSchema['x-decorator-props'].engine = engine;
|
||||||
field.decoratorProps.engine = engine;
|
field.decoratorProps.engine = engine;
|
||||||
dn.emit('patch', {
|
dn.emit('patch', {
|
||||||
|
Loading…
Reference in New Issue
Block a user