fix(data-templates): filter out some fileds

This commit is contained in:
Rairn 2023-04-16 19:14:12 +08:00
parent 11fb951b55
commit 76faa9e30c

View File

@ -71,6 +71,9 @@ export const useCollectionState = (currentCollectionName: string) => {
if (!field.interface) { if (!field.interface) {
return; return;
} }
if (['sort', 'password', 'sequence'].includes(field.type)) {
return;
}
const node = { const node = {
type: 'duplicate', type: 'duplicate',
tag: compile(field.uiSchema?.title) || field.name, tag: compile(field.uiSchema?.title) || field.name,