diff --git a/packages/core/client/src/locale/en_US.ts b/packages/core/client/src/locale/en_US.ts index d136de79d..07d713859 100644 --- a/packages/core/client/src/locale/en_US.ts +++ b/packages/core/client/src/locale/en_US.ts @@ -37,6 +37,7 @@ export default { "Collections & Fields": "Collections & Fields", "All collections":"All collections", "Add category":"Add category", + "Enable child collections":"Enable child collections", "Delete category":"Delete category", "Edit category":"Edit category", "Collection category":"Collection category", diff --git a/packages/core/client/src/locale/ja_JP.ts b/packages/core/client/src/locale/ja_JP.ts index 263578101..c4aeb858d 100644 --- a/packages/core/client/src/locale/ja_JP.ts +++ b/packages/core/client/src/locale/ja_JP.ts @@ -34,6 +34,7 @@ export default { "Delete": "削除", "UI editor": "UI エディタ", "Collection": "コレクション", + "Enable child collections":"启用子表", "Collections & Fields": "コレクションとフィールド", "All collections":"すべてのデータテーブル", "Add category":"分類の追加", diff --git a/packages/core/client/src/locale/zh_CN.ts b/packages/core/client/src/locale/zh_CN.ts index c38696c4f..79ae12ee7 100644 --- a/packages/core/client/src/locale/zh_CN.ts +++ b/packages/core/client/src/locale/zh_CN.ts @@ -34,6 +34,7 @@ export default { "Delete": "删除", "UI editor": "界面配置", "Collection": "数据表", + "Enable child collections":"启用子表", "Collections & Fields": "数据表配置", "All collections":"全部数据表", "Add category":"添加分类", diff --git a/packages/core/client/src/schema-settings/SchemaSettings.tsx b/packages/core/client/src/schema-settings/SchemaSettings.tsx index 27eaa895c..000cd8847 100644 --- a/packages/core/client/src/schema-settings/SchemaSettings.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettings.tsx @@ -1035,7 +1035,15 @@ SchemaSettings.EnableChildCollections = (props) => { ['x-uid']: uid, }; fieldSchema['x-enable-children'] = enableChildren; + fieldSchema['x-component-props'] = { + openMode: 'drawer', + component: 'CreateRecordAction', + }; schema['x-enable-children'] = enableChildren; + schema['x-component-props'] = { + openMode: 'drawer', + component: 'CreateRecordAction', + }; dn.emit('patch', { schema, });