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:
		
							parent
							
								
									e7d0e49b8e
								
							
						
					
					
						commit
						99ee409fce
					
				| @ -37,6 +37,7 @@ export default { | |||||||
|   "Collections & Fields": "Collections & Fields", |   "Collections & Fields": "Collections & Fields", | ||||||
|   "All collections":"All collections", |   "All collections":"All collections", | ||||||
|   "Add category":"Add category", |   "Add category":"Add category", | ||||||
|  |   "Enable child collections":"Enable child collections", | ||||||
|   "Delete category":"Delete category", |   "Delete category":"Delete category", | ||||||
|   "Edit category":"Edit category", |   "Edit category":"Edit category", | ||||||
|   "Collection category":"Collection category", |   "Collection category":"Collection category", | ||||||
|  | |||||||
| @ -34,6 +34,7 @@ export default { | |||||||
|   "Delete": "削除", |   "Delete": "削除", | ||||||
|   "UI editor": "UI エディタ", |   "UI editor": "UI エディタ", | ||||||
|   "Collection": "コレクション", |   "Collection": "コレクション", | ||||||
|  |   "Enable child collections":"启用子表", | ||||||
|   "Collections & Fields": "コレクションとフィールド", |   "Collections & Fields": "コレクションとフィールド", | ||||||
|   "All collections":"すべてのデータテーブル", |   "All collections":"すべてのデータテーブル", | ||||||
|   "Add category":"分類の追加", |   "Add category":"分類の追加", | ||||||
|  | |||||||
| @ -34,6 +34,7 @@ export default { | |||||||
|   "Delete": "删除", |   "Delete": "删除", | ||||||
|   "UI editor": "界面配置", |   "UI editor": "界面配置", | ||||||
|   "Collection": "数据表", |   "Collection": "数据表", | ||||||
|  |   "Enable child collections":"启用子表", | ||||||
|   "Collections & Fields": "数据表配置", |   "Collections & Fields": "数据表配置", | ||||||
|   "All collections":"全部数据表", |   "All collections":"全部数据表", | ||||||
|   "Add category":"添加分类", |   "Add category":"添加分类", | ||||||
|  | |||||||
| @ -1035,7 +1035,15 @@ SchemaSettings.EnableChildCollections = (props) => { | |||||||
|           ['x-uid']: uid, |           ['x-uid']: uid, | ||||||
|         }; |         }; | ||||||
|         fieldSchema['x-enable-children'] = enableChildren; |         fieldSchema['x-enable-children'] = enableChildren; | ||||||
|  |         fieldSchema['x-component-props'] = { | ||||||
|  |           openMode: 'drawer', | ||||||
|  |           component: 'CreateRecordAction', | ||||||
|  |         }; | ||||||
|         schema['x-enable-children'] = enableChildren; |         schema['x-enable-children'] = enableChildren; | ||||||
|  |         schema['x-component-props'] = { | ||||||
|  |           openMode: 'drawer', | ||||||
|  |           component: 'CreateRecordAction', | ||||||
|  |         }; | ||||||
|         dn.emit('patch', { |         dn.emit('patch', { | ||||||
|           schema, |           schema, | ||||||
|         }); |         }); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user