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:
parent
2021230f50
commit
27d43eee28
@ -210,19 +210,23 @@ export function RuleConfigForm() {
|
|||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// fix https://nocobase.height.app/T-2868
|
// fix https://nocobase.height.app/T-2868
|
||||||
FormDrawer({ title: compile(ruleType.title), zIndex: token.zIndexPopupBase + 1000 }, () => {
|
FormDrawer(
|
||||||
return (
|
{
|
||||||
<FormLayout layout="vertical">
|
title: compile(ruleType.title),
|
||||||
<SchemaComponentOptions scope={schemaOptions.scope} components={schemaOptions.components}>
|
zIndex: token.zIndexPopupBase + 1000,
|
||||||
<SchemaComponent
|
},
|
||||||
schema={{
|
() => {
|
||||||
type: 'object',
|
return (
|
||||||
'x-component': 'fieldset',
|
<FormLayout layout="vertical">
|
||||||
properties: ruleType.fieldset,
|
<SchemaComponentOptions scope={schemaOptions.scope} components={schemaOptions.components}>
|
||||||
}}
|
<SchemaComponent
|
||||||
/>
|
schema={{
|
||||||
</SchemaComponentOptions>
|
type: 'object',
|
||||||
<FormDrawer.Footer>
|
'x-component': 'fieldset',
|
||||||
|
properties: ruleType.fieldset,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</SchemaComponentOptions>
|
||||||
<FormButtonGroup
|
<FormButtonGroup
|
||||||
className={css`
|
className={css`
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
@ -236,10 +240,10 @@ export function RuleConfigForm() {
|
|||||||
{t('Submit')}
|
{t('Submit')}
|
||||||
</Submit>
|
</Submit>
|
||||||
</FormButtonGroup>
|
</FormButtonGroup>
|
||||||
</FormDrawer.Footer>
|
</FormLayout>
|
||||||
</FormLayout>
|
);
|
||||||
);
|
},
|
||||||
})
|
)
|
||||||
.open({
|
.open({
|
||||||
initialValues: options,
|
initialValues: options,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user