config.data.ts
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { BasicColumn, FormSchema } from '/@/components/Table';
// 表格列数据
export const columns: BasicColumn[] = [
{
title: '主题',
dataIndex: 'title',
width: 80,
},
{
title: '姓名',
dataIndex: 'name',
width: 120,
},
{
title: '反馈信息',
dataIndex: 'message',
width: 120,
},
{
title: '添加时间',
dataIndex: 'createTime',
width: 180,
},
];
// 查询字段
export const searchFormSchema: FormSchema[] = [
{
field: 'name',
label: '姓名',
component: 'Input',
colProps: { span: 8 },
componentProps: {
maxLength: 36,
placeholder: '请输入姓名',
},
},
];
// 弹框配置项
export const formSchema: FormSchema[] = [
{
field: 'title',
label: '主题',
component: 'Input',
componentProps: {
disabled: true,
},
},
{
field: 'name',
label: '姓名',
component: 'Input',
componentProps: {
disabled: true,
},
},
{
field: 'message',
label: '反馈信息',
colProps: { span: 24 },
component: 'InputTextArea',
componentProps: {
disabled: true,
},
},
{
field: 'images',
label: '预览图片',
slot: 'iconSelect',
component: 'Input',
},
];