feat: 将表单的布局模式,按钮设置的默认位置, 放置在右上角

This commit is contained in:
bai.zixv 2024-04-18 13:10:38 +08:00
parent b4aa7ddea7
commit d355519550

View File

@ -45,23 +45,23 @@ export function createCreateFormBlockUISchema(options: CreateFormBlockUISchemaOp
'x-component': 'FormV2', 'x-component': 'FormV2',
'x-use-component-props': 'useCreateFormBlockProps', 'x-use-component-props': 'useCreateFormBlockProps',
properties: { properties: {
grid: templateSchema || {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'form:configureFields',
properties: {},
},
[uid()]: { [uid()]: {
type: 'void', type: 'void',
'x-initializer': 'createForm:configureActions', 'x-initializer': 'createForm:configureActions',
'x-component': 'ActionBar', 'x-component': 'ActionBar',
'x-component-props': { 'x-component-props': {
layout: 'one-column', // layout: 'one-column',
style: { style: {
marginTop: 24, marginBottom: 24,
}, },
}, },
}, },
grid: templateSchema || {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'form:configureFields',
properties: {},
},
}, },
}, },
}, },