config.data.ts
1.43 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';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
// 表格列数据
export const columns: BasicColumn[] = [
{
title: t('system.feedback.theme'),
dataIndex: 'title',
width: 80,
},
{
title: t('system.feedback.fullName'),
dataIndex: 'name',
width: 120,
},
{
title: t('system.feedback.message'),
dataIndex: 'message',
width: 120,
},
{
title: t('system.feedback.table.time'),
dataIndex: 'createTime',
width: 180,
},
];
// 查询字段
export const searchFormSchema: FormSchema[] = [
{
field: 'name',
label: t('system.feedback.fullName'),
component: 'Input',
colProps: { span: 8 },
componentProps: {
maxLength: 36,
},
},
];
// 弹框配置项
export const formSchema: FormSchema[] = [
{
field: 'title',
label: t('system.feedback.theme'),
component: 'Input',
componentProps: {
disabled: true,
},
},
{
field: 'name',
label: t('system.feedback.fullName'),
component: 'Input',
componentProps: {
disabled: true,
},
},
{
field: 'message',
label: t('system.feedback.message'),
colProps: { span: 24 },
component: 'InputTextArea',
componentProps: {
disabled: true,
},
},
{
field: 'images',
label: t('system.feedback.previewImg'),
slot: 'iconSelect',
component: 'Input',
},
];