fix: history add new button does not support enabling child collection (#1536)

* fix:  history add new button does not support enabling child collection

* fix:  history add new button does not support enabling child collection
This commit is contained in:
katherinehhh 2023-03-30 17:46:39 +08:00 committed by GitHub
parent e7d0e49b8e
commit 99ee409fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View File

@ -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",

View File

@ -34,6 +34,7 @@ export default {
"Delete": "削除",
"UI editor": "UI エディタ",
"Collection": "コレクション",
"Enable child collections":"启用子表",
"Collections & Fields": "コレクションとフィールド",
"All collections":"すべてのデータテーブル",
"Add category":"分類の追加",

View File

@ -34,6 +34,7 @@ export default {
"Delete": "删除",
"UI editor": "界面配置",
"Collection": "数据表",
"Enable child collections":"启用子表",
"Collections & Fields": "数据表配置",
"All collections":"全部数据表",
"Add category":"添加分类",

View File

@ -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,
});