zhaoxing
2022-08-22 74bb50ce93d0c9cd20a0b84f63db46f433a39e91
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
export default [
    {
        test: ["avatar", "img", "image", "pic", "photo", "picture", "head", "icon"],
        table: {
            name: "cl-image",
            props: {
                size: 60
            }
        },
        form: {
            name: "cl-upload"
        }
    },
    {
        test: ["avatars", "imgs", "images", "pics", "photos", "pictures", "heads", "icons"],
        table: {
            name: "cl-image",
            props: {
                size: 60
            }
        },
        form: {
            name: "cl-upload",
            props: {
                listType: "picture-card",
                multiple: true
            }
        }
    },
    {
        test: ["file", "attachment", "attach", "url", "video", "music"],
        table: {
            name: "cl-link"
        },
        form: {
            name: "cl-upload",
            props: {
                listType: "text",
                limit: 1
            }
        }
    },
    {
        test: ["files", "attachments", "attachs", "urls", "videos", "musics"],
        table: {
            name: "cl-link"
        },
        form: {
            name: "cl-upload",
            props: {
                listType: "text",
                multiple: true
            }
        }
    },
    {
        test: ["enable", "status"],
        table: {
            name: "cl-switch"
        },
        form: {
            name: "el-switch"
        }
    },
    {
        test: ["type", "classify", "category"],
        handler: "dict"
    },
    {
        test: ["types", "classifys", "categorys"],
        handler: "dict_multiple"
    },
    {
        test: ["date"],
        table: {
            name: "cl-date",
            props: {
                format: "YYYY-MM-DD"
            }
        },
        form: {
            name: "el-date-picker",
            props: {
                type: "date",
                valueFormat: "YYYY-MM-DD"
            }
        }
    },
    {
        test: ["dates", "dateRange", "dateScope"],
        table: {
            name: "cl-date",
            props: {
                format: "YYYY-MM-DD"
            }
        },
        form: {
            component: {
                name: "el-date-picker",
                props: {
                    type: "daterange",
                    valueFormat: "YYYY-MM-DD"
                }
            }
        }
    },
    {
        test: ["time"],
        form: {
            name: "el-date-picker",
            props: {
                type: "datetime",
                valueFormat: "YYYY-MM-DD HH:mm:ss"
            }
        }
    },
    {
        test: ["times", "timeRange", "timeScope"],
        form: {
            component: {
                name: "el-date-picker",
                props: {
                    type: "datetimerange",
                    valueFormat: "YYYY-MM-DD HH:mm:ss",
                    defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 23, 59, 59)]
                }
            }
        }
    },
    {
        test: ["star", "stars"],
        table: {
            name: "el-rate",
            props: {
                disabled: true
            }
        },
        form: {
            name: "el-rate"
        }
    },
    {
        test: ["progress", "rate", "ratio"],
        table: {
            name: "el-progress"
        },
        form: {
            name: "el-slider",
            props: {
                style: {
                    width: "200px"
                }
            }
        }
    },
    {
        test: ["num", "price", "age", "amount"],
        form: {
            name: "el-input-number",
            props: {
                min: 0
            }
        }
    },
    {
        test: ["remark", "desc"],
        table: {
            showOverflowTooltip: true
        },
        form: {
            name: "el-input",
            props: {
                type: "textarea",
                rows: 4
            }
        }
    },
    {
        test: ["rich", "text", "html", "content", "introduce", "description", "desc"],
        table: {
            name: "cl-editor-quill"
        },
        form: {
            name: "cl-editor-quill",
            props: {
                height: 400
            }
        }
    },
    {
        test: ["code", "codes"],
        table: {
            name: "cl-codemirror"
        },
        form: {
            name: "cl-codemirror",
            props: {
                height: 400
            }
        }
    },
    {
        test: ["createTime"],
        table: {
            sortable: "desc"
        }
    },
    {
        test: ["updateTime"],
        table: {
            sortable: "custom"
        }
    }
];