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,7 +210,12 @@ export function RuleConfigForm() {
type="link"
onClick={() => {
// fix https://nocobase.height.app/T-2868
FormDrawer({ title: compile(ruleType.title), zIndex: token.zIndexPopupBase + 1000 }, () => {
FormDrawer(
{
title: compile(ruleType.title),
zIndex: token.zIndexPopupBase + 1000,
},
() => {
return (
<FormLayout layout="vertical">
<SchemaComponentOptions scope={schemaOptions.scope} components={schemaOptions.components}>
@ -222,7 +227,6 @@ export function RuleConfigForm() {
}}
/>
</SchemaComponentOptions>
<FormDrawer.Footer>
<FormButtonGroup
className={css`
justify-content: flex-end;
@ -236,10 +240,10 @@ export function RuleConfigForm() {
{t('Submit')}
</Submit>
</FormButtonGroup>
</FormDrawer.Footer>
</FormLayout>
);
})
},
)
.open({
initialValues: options,
})