From 7334e0b3fbb7e024cb4d490189d9f1f3317d53ff Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Fri, 29 Dec 2023 11:53:04 +0800 Subject: [PATCH] refactor: record picker submit button display by association type (#3283) --- .../antd/association-field/InternalPicker.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx index add14c5186..31cffe421c 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx @@ -125,6 +125,9 @@ export const InternalPicker = observer( } setVisible(false); }, + style: { + display: multiple !== false && ['o2m', 'm2m'].includes(collectionField?.interface) ? 'block' : 'none', + }, }; }; return ( @@ -189,7 +192,12 @@ export const InternalPicker = observer( - +