@jdlinker/linker
Version:
jdLinker 系统模块
118 lines (117 loc) • 1.97 kB
text/typescript
import { BasicColumn, FormSchema } from '@jdlinker/ui';
//列表数据
export const columns: BasicColumn[] = [
{
title: '名称',
align: 'center',
dataIndex: 'name',
},
{
title: 'serverId',
align: 'center',
dataIndex: 'serverId',
},
{
title: '地址',
align: 'center',
dataIndex: 'host',
},
{
title: '端口',
align: 'center',
dataIndex: 'port',
},
{
title: '状态',
align: 'center',
dataIndex: 'state',
},
{
title: '配置',
align: 'center',
dataIndex: 'configuration',
},
{
title: '描述',
align: 'center',
dataIndex: 'description',
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: '名称',
field: 'name',
component: 'Input',
colProps: { span: 6 },
},
{
label: 'serverId',
field: 'serverId',
component: 'Input',
colProps: { span: 6 },
},
{
label: '地址',
field: 'host',
component: 'Input',
colProps: { span: 6 },
},
{
label: '端口',
field: 'port',
component: 'Input',
colProps: { span: 6 },
},
{
label: '状态',
field: 'state',
component: 'Input',
colProps: { span: 6 },
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '名称',
field: 'name',
component: 'Input',
},
{
label: 'serverId',
field: 'serverId',
component: 'Input',
},
{
label: '地址',
field: 'host',
component: 'Input',
},
{
label: '端口',
field: 'port',
component: 'Input',
},
{
label: '状态',
field: 'state',
component: 'Input',
},
{
label: '配置',
field: 'configuration',
component: 'InputTextArea',
},
{
label: '描述',
field: 'description',
component: 'InputTextArea',
},
// TODO 主键隐藏字段,目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];