From 3c161eab86e320090233a64f3a7533488683e270 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Sun, 6 Aug 2023 19:48:03 +0800 Subject: [PATCH] refactor: restrict the fields within the configured data scope in sub table (#2394) --- .../schema-component/antd/table-v2/Table.Column.Designer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx index fa308dda8..11b165890 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx @@ -75,6 +75,7 @@ export const TableColumnDesigner = (props) => { if (fieldSchema['x-read-pretty'] === true) { readOnlyMode = 'read-pretty'; } + const isSelectFieldMode = isAssociationField && fieldMode === 'Select'; return ( { dn.refresh(); }} /> - {currentMode && !field.readPretty && ( + {isSelectFieldMode && !field.readPretty && !uiSchema?.['x-read-pretty'] && (