From 9f16eae936a092649954eba2ba839f796b376d66 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Mon, 3 Apr 2023 19:04:43 +0800 Subject: [PATCH] refactor: collection edit can not config fields --- packages/core/client/src/collection-manager/templates/view.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/client/src/collection-manager/templates/view.tsx b/packages/core/client/src/collection-manager/templates/view.tsx index 9c0debe08f..f0774d3586 100644 --- a/packages/core/client/src/collection-manager/templates/view.tsx +++ b/packages/core/client/src/collection-manager/templates/view.tsx @@ -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'],