refactor: collection edit can not config fields

This commit is contained in:
katherinehhh 2023-04-03 19:04:43 +08:00
parent a7977cb23f
commit 9f16eae936

View File

@ -80,6 +80,7 @@ export const view: ICollectionTemplate = {
fields: {
type: 'array',
'x-component': PreviewFields,
'x-visible': '{{ createOnly }}',
'x-reactions': {
dependencies: ['name'],
fulfill: {
@ -91,6 +92,7 @@ export const view: ICollectionTemplate = {
},
preview: {
type: 'object',
'x-visible': '{{ createOnly }}',
'x-component': PreviewTable,
'x-reactions': {
dependencies: ['name','fields'],