Merge branch 'main' into next

This commit is contained in:
GitHub Actions Bot 2024-08-29 07:42:34 +00:00
commit 269aaa8637
4 changed files with 8 additions and 1 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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);

View File

@ -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', {