feat: 代码生成

This commit is contained in:
dap
2024-10-05 14:48:23 +08:00
parent a77886a675
commit 34c2117aa0
2 changed files with 152 additions and 136 deletions

View File

@@ -1,4 +1,4 @@
import type { FormSchemaGetter } from '#/adapter';
import type { FormSchemaGetter, VxeGridProps } from '#/adapter';
export const querySchema: FormSchemaGetter = () => [
{
@@ -23,3 +23,34 @@ export const querySchema: FormSchemaGetter = () => [
label: '创建时间',
},
];
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
field: 'tableName',
title: '表名称',
},
{
field: 'tableComment',
title: '表描述',
},
{
field: 'className',
title: '实体类',
},
{
field: 'createTime',
title: '创建时间',
},
{
field: 'updateTime',
title: '更新时间',
},
{
field: 'action',
fixed: 'right',
slots: { default: 'action' },
title: '操作',
width: 300,
},
];