fix: 修复数据表自动编码没有提交按钮的bug, 去除布局组件 (#722)

Reviewed-on: daoyoucloud/tachycode#722
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-04-15 22:59:33 +08:00 committed by sealday
parent 2021230f50
commit 27d43eee28

View File

@ -210,19 +210,23 @@ export function RuleConfigForm() {
type="link"
onClick={() => {
// fix https://nocobase.height.app/T-2868
FormDrawer({ title: compile(ruleType.title), zIndex: token.zIndexPopupBase + 1000 }, () => {
return (
<FormLayout layout="vertical">
<SchemaComponentOptions scope={schemaOptions.scope} components={schemaOptions.components}>
<SchemaComponent
schema={{
type: 'object',
'x-component': 'fieldset',
properties: ruleType.fieldset,
}}
/>
</SchemaComponentOptions>
<FormDrawer.Footer>
FormDrawer(
{
title: compile(ruleType.title),
zIndex: token.zIndexPopupBase + 1000,
},
() => {
return (
<FormLayout layout="vertical">
<SchemaComponentOptions scope={schemaOptions.scope} components={schemaOptions.components}>
<SchemaComponent
schema={{
type: 'object',
'x-component': 'fieldset',
properties: ruleType.fieldset,
}}
/>
</SchemaComponentOptions>
<FormButtonGroup
className={css`
justify-content: flex-end;
@ -236,10 +240,10 @@ export function RuleConfigForm() {
{t('Submit')}
</Submit>
</FormButtonGroup>
</FormDrawer.Footer>
</FormLayout>
);
})
</FormLayout>
);
},
)
.open({
initialValues: options,
})