diff --git a/packages/client/src/components/admin-layout/Collections/index.tsx b/packages/client/src/components/admin-layout/Collections/index.tsx index fdfe0456ac..760f41b00b 100644 --- a/packages/client/src/components/admin-layout/Collections/index.tsx +++ b/packages/client/src/components/admin-layout/Collections/index.tsx @@ -176,6 +176,7 @@ for (const [key, schema] of interfaces) { fieldInterfaces.push({ value: key, label: schema.title, + disabled: schema.disabled, }); } @@ -592,7 +593,7 @@ function CreateFieldButton() { option.children.length > 0 && ( {option.children.map((item) => ( - + {item.title} ))} @@ -612,12 +613,16 @@ function CreateFieldButton() { title={'添加字段'} width={'50%'} visible={visible} - onClose={() => setVisible(false)} + onClose={() => { + setVisible(false); + form.reset(); + }} footer={