refactor: code improve

This commit is contained in:
katherinehhh 2024-01-29 12:06:49 +08:00
parent 40ee4cdedb
commit 97d1db5e92
2 changed files with 23 additions and 23 deletions

View File

@ -55,7 +55,7 @@ const getSchema = (schema: IField, record: any, compile, getContainer): ISchema
},
title: '{{ t("Edit collection") }}',
properties: {
...omit(properties, 'category'),
...omit(properties, 'category', 'inherits', 'moreOptions'),
footer: {
type: 'void',
'x-component': 'Action.Drawer.Footer',

View File

@ -37,16 +37,16 @@ export const collection: CollectionOptions = {
'{{t("Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.")}}',
},
},
{
type: 'string',
name: 'template',
interface: 'input',
uiSchema: {
title: '{{ t("Collection Template") }}',
type: 'string',
'x-component': 'Input',
},
},
// {
// type: 'string',
// name: 'template',
// interface: 'input',
// uiSchema: {
// title: '{{ t("Collection Template") }}',
// type: 'string',
// 'x-component': 'Input',
// },
// },
{
type: 'hasMany',
name: 'fields',
@ -220,18 +220,18 @@ export const collectionTableSchema: ISchema = {
},
},
},
column3: {
type: 'void',
'x-decorator': 'Table.Column.Decorator',
'x-component': 'Table.Column',
title: '{{t("Collection template")}}',
properties: {
template: {
'x-component': CollectionTemplate,
'x-read-pretty': true,
},
},
},
// column3: {
// type: 'void',
// 'x-decorator': 'Table.Column.Decorator',
// 'x-component': 'Table.Column',
// title: '{{t("Collection template")}}',
// properties: {
// template: {
// 'x-component': CollectionTemplate,
// 'x-read-pretty': true,
// },
// },
// },
column5: {
type: 'void',
'x-decorator': 'Table.Column.Decorator',