ruoyi-plus-vben5/apps/web-antd/src/views/tool/gen/data.tsx

57 lines
1003 B
TypeScript
Raw Normal View History

2024-10-05 14:48:23 +08:00
import type { FormSchemaGetter, VxeGridProps } from '#/adapter';
2024-09-24 11:23:02 +08:00
export const querySchema: FormSchemaGetter = () => [
{
component: 'Select',
fieldName: 'dataName',
label: '数据源',
2024-10-09 16:46:06 +08:00
defaultValue: '',
2024-09-24 11:23:02 +08:00
},
{
component: 'Input',
fieldName: 'tableName',
label: '表名称',
},
{
component: 'Input',
fieldName: 'tableComment',
label: '表描述',
},
{
component: 'RangePicker',
fieldName: 'createTime',
label: '创建时间',
},
];
2024-10-05 14:48:23 +08:00
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,
},
];