fix: 修改弹窗中的模版行为按钮固定在上面 (#1114)

Reviewed-on: daoyoucloud/tachybase#1114
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-06-04 18:23:42 +08:00 committed by sealday
parent 5251aec157
commit 171d56aaff

View File

@ -1,5 +1,4 @@
import { ISchema } from '@tachybase/schema';
import { uid } from '@tachybase/schema';
import { ISchema, uid } from '@tachybase/schema';
interface EditFormBlockOptions {
dataSource: string;
@ -46,23 +45,22 @@ export function createEditFormBlockUISchema(options: EditFormBlockOptions): ISch
'x-component': 'FormV2',
'x-use-component-props': 'useEditFormBlockProps',
properties: {
[uid()]: {
type: 'void',
'x-initializer': 'editForm:configureActions',
'x-component': 'ActionBar',
'x-component-props': {
style: {
marginBottom: 'var(--tb-spacing)',
},
},
},
grid: templateSchema || {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'form:configureFields',
properties: {},
},
[uid()]: {
type: 'void',
'x-initializer': 'editForm:configureActions',
'x-component': 'ActionBar',
'x-component-props': {
layout: 'one-column',
style: {
marginTop: 24,
},
},
},
},
},
},