perf: crud

This commit is contained in:
xingyu4j
2022-11-17 16:39:18 +08:00
parent 7225150e0e
commit 0b23ce416e
3 changed files with 25 additions and 39 deletions

View File

@ -17,40 +17,28 @@ const crudSchemas = reactive<CrudSchema[]>([
label: t('common.index'),
field: 'id',
type: 'index',
form: {
show: false
},
detail: {
show: false
}
isForm: false,
isDetail: false
},
{
label: '表名称',
field: 'tableName',
search: {
show: true
}
isSearch: true
},
{
label: '表描述',
field: 'tableComment',
search: {
show: true
}
isSearch: true
},
{
label: '实体',
field: 'className',
search: {
show: true
}
isSearch: true
},
{
label: t('common.createTime'),
field: 'createTime',
form: {
show: false
},
isForm: false,
search: {
show: true,
component: 'DatePicker',
@ -64,20 +52,14 @@ const crudSchemas = reactive<CrudSchema[]>([
{
label: t('common.updateTime'),
field: 'updateTime',
form: {
show: false
}
isForm: false
},
{
label: t('table.action'),
field: 'action',
width: '500px',
form: {
show: false
},
detail: {
show: false
}
width: '350px',
isForm: false,
isDetail: false
}
])
export const { allSchemas } = useCrudSchemas(crudSchemas)