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