From 35825ac77b07a642df97bc4f27795ff5be39887b Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Tue, 30 Apr 2024 09:49:57 +0800 Subject: [PATCH] refactor: tree collection association support sub-table & sub-detail (#4225) --- .../client/src/schema-component/hooks/useFieldModeOptions.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx b/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx index 5a79c4977b..fd6a98c836 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx +++ b/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx @@ -47,6 +47,8 @@ export const useFieldModeOptions = (props?) => { ? [ { label: t('Title'), value: 'Select' }, { label: t('Tag'), value: 'Tag' }, + !isTableField && { label: t('Sub-details'), value: 'Nester' }, + !isTableField && { label: t('Sub-table'), value: 'SubTable' }, ] : [ { label: t('Select'), value: 'Select' },