mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 12:27:33 +00:00
refactor: code improve
This commit is contained in:
parent
40ee4cdedb
commit
97d1db5e92
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user