@a2simcode/ui 0.0.240 → 0.0.242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/table/index.d.ts +15 -0
- package/dist/components/table/src/table.vue.d.ts +15 -0
- package/dist/components/table-panel/index.d.ts +15 -0
- package/dist/components/table-panel/src/table-panel.vue.d.ts +15 -0
- package/dist/simcode-ui.es.js +2612 -2589
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/components/meta/comp.ts +1 -1
- package/docs/components/meta/input-button.ts +10 -0
- package/docs/components/meta/input-code.ts +10 -0
- package/docs/components/meta/select.ts +1 -1
- package/docs/components/meta/table-panel.ts +272 -260
- package/docs/components/meta/table.ts +409 -403
- package/docs/components/table-panel.md +15 -0
- package/docs/components/table.md +15 -0
- package/docs/examples/table/column-filter.vue +96 -0
- package/docs/examples/table-panel/column-filter.vue +116 -0
- package/package.json +1 -1
|
@@ -1,403 +1,409 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"props": [
|
|
3
|
-
{
|
|
4
|
-
"name": "id",
|
|
5
|
-
"description": "",
|
|
6
|
-
"type": "string",
|
|
7
|
-
"default": "''"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"name": "modelValue",
|
|
11
|
-
"description": "输入值【作为表单的编辑表格使用】",
|
|
12
|
-
"type": "Record<string, any>[]",
|
|
13
|
-
"default": "() => []"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "columns",
|
|
17
|
-
"description": "表格列配置(支持树形结构)",
|
|
18
|
-
"type": "ColumnSchemaConfig[]",
|
|
19
|
-
"default": "() => []"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "
|
|
23
|
-
"description": "
|
|
24
|
-
"type": "
|
|
25
|
-
"default": "() => []"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "
|
|
29
|
-
"description": "
|
|
30
|
-
"type": "
|
|
31
|
-
"default": "
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "
|
|
35
|
-
"description": "
|
|
36
|
-
"type": "boolean",
|
|
37
|
-
"default": "false"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "
|
|
41
|
-
"description": "
|
|
42
|
-
"type": "
|
|
43
|
-
"default": "
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "
|
|
47
|
-
"description": "
|
|
48
|
-
"type": "
|
|
49
|
-
"default": "
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "
|
|
53
|
-
"description": "
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"default": "
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "
|
|
59
|
-
"description": "
|
|
60
|
-
"type": "
|
|
61
|
-
"default": "
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "
|
|
65
|
-
"description": "
|
|
66
|
-
"type": "
|
|
67
|
-
"default": "
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "
|
|
71
|
-
"description": "
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"default": "
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "
|
|
77
|
-
"description": "
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"default": "false"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "
|
|
83
|
-
"description": "
|
|
84
|
-
"type": "
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "
|
|
94
|
-
"description": "
|
|
95
|
-
"type": "number",
|
|
96
|
-
"default": "
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "
|
|
100
|
-
"description": "
|
|
101
|
-
"type": "number",
|
|
102
|
-
"default": "
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "
|
|
106
|
-
"description": "
|
|
107
|
-
"type": "
|
|
108
|
-
"default": "
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "
|
|
112
|
-
"description": "
|
|
113
|
-
"type": "
|
|
114
|
-
"default": "
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "
|
|
118
|
-
"description": "
|
|
119
|
-
"type": "
|
|
120
|
-
"default": "
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "
|
|
124
|
-
"description": "
|
|
125
|
-
"type": "
|
|
126
|
-
"default": "
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"name": "
|
|
130
|
-
"description": "
|
|
131
|
-
"type": "number",
|
|
132
|
-
"default": "
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"name": "
|
|
136
|
-
"description": "
|
|
137
|
-
"type": "
|
|
138
|
-
"default": "
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "
|
|
142
|
-
"description": "
|
|
143
|
-
"type": "
|
|
144
|
-
"default": "
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "
|
|
148
|
-
"description": "
|
|
149
|
-
"type": "
|
|
150
|
-
"default": "
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"name": "
|
|
154
|
-
"description": "
|
|
155
|
-
"type": "
|
|
156
|
-
"default": "
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "
|
|
160
|
-
"description": "
|
|
161
|
-
"type": "
|
|
162
|
-
"default": "
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"name": "
|
|
166
|
-
"description": "
|
|
167
|
-
"type": "
|
|
168
|
-
"default": "
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "
|
|
172
|
-
"description": "
|
|
173
|
-
"type": "
|
|
174
|
-
"default": "
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"name": "
|
|
178
|
-
"description": "
|
|
179
|
-
"type": "
|
|
180
|
-
"default": "
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"name": "
|
|
184
|
-
"description": "
|
|
185
|
-
"type": "
|
|
186
|
-
"default": "
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "
|
|
190
|
-
"description": "
|
|
191
|
-
"type": "
|
|
192
|
-
"default": "
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "
|
|
196
|
-
"description": "
|
|
197
|
-
"type": "
|
|
198
|
-
"default": "
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
"
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
"
|
|
303
|
-
"
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
"
|
|
308
|
-
"
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
"
|
|
328
|
-
"
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
"
|
|
333
|
-
"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"
|
|
338
|
-
"
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
"
|
|
343
|
-
"
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
"
|
|
348
|
-
"
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
"
|
|
383
|
-
"
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
"
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
"
|
|
398
|
-
"
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
1
|
+
export default {
|
|
2
|
+
"props": [
|
|
3
|
+
{
|
|
4
|
+
"name": "id",
|
|
5
|
+
"description": "",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"default": "''"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "modelValue",
|
|
11
|
+
"description": "输入值【作为表单的编辑表格使用】",
|
|
12
|
+
"type": "Record<string, any>[]",
|
|
13
|
+
"default": "() => []"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "columns",
|
|
17
|
+
"description": "表格列配置(支持树形结构)",
|
|
18
|
+
"type": "ColumnSchemaConfig[]",
|
|
19
|
+
"default": "() => []"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "columnFilter",
|
|
23
|
+
"description": "列过滤(用于隐藏列)",
|
|
24
|
+
"type": "string[]",
|
|
25
|
+
"default": "() => []"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "records",
|
|
29
|
+
"description": "表格数据",
|
|
30
|
+
"type": "Record<string, any>[]",
|
|
31
|
+
"default": "() => []"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "isTree",
|
|
35
|
+
"description": "是否是树形结构",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": "false"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "defaultExpandAll",
|
|
41
|
+
"description": "是否默认全部展开(仅 isTree 为 true 且非懒加载时生效)",
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": "false"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "parentKey",
|
|
47
|
+
"description": "父级字段名(isTree 为 true 时用于将扁平数据转换成树形数据)",
|
|
48
|
+
"type": "string",
|
|
49
|
+
"default": "''"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "isShowNumber",
|
|
53
|
+
"description": "是否显示序号",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": "true"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "isMultiple",
|
|
59
|
+
"description": "是否开启多选",
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"default": "false"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "selectStateKey",
|
|
65
|
+
"description": "选状态字段名",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"default": "''"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "multipleDisabled",
|
|
71
|
+
"description": "多选禁用判断",
|
|
72
|
+
"type": "(record: Record<string, any>) => boolean",
|
|
73
|
+
"default": "null"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "isPage",
|
|
77
|
+
"description": "是否分页",
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"default": "false"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "pageLayoutSimple",
|
|
83
|
+
"description": "分页样式是否是简洁模式",
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": "false"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "pageSizes",
|
|
89
|
+
"description": "每页显示个数选择器的选项设置",
|
|
90
|
+
"type": "array"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "pageTotal",
|
|
94
|
+
"description": "总的数据条数",
|
|
95
|
+
"type": "number",
|
|
96
|
+
"default": "0"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "tablePage",
|
|
100
|
+
"description": "当前页面",
|
|
101
|
+
"type": "number",
|
|
102
|
+
"default": "1"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "pageSize",
|
|
106
|
+
"description": "当前显示页数",
|
|
107
|
+
"type": "number",
|
|
108
|
+
"default": "100"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "rowKey",
|
|
112
|
+
"description": "行主键",
|
|
113
|
+
"type": "string",
|
|
114
|
+
"default": "'id'"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "rowDrag",
|
|
118
|
+
"description": "是否支持行拖动排序",
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"default": "false"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "actions",
|
|
124
|
+
"description": "行内操作按钮配置",
|
|
125
|
+
"type": "ButtonCompType[]",
|
|
126
|
+
"default": "() => []"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "actionFilter",
|
|
130
|
+
"description": "行内操作按钮过滤方法",
|
|
131
|
+
"type": "(params: {\r\n action: ButtonCompType\r\n record: Record<string, any>\r\n recordIndex: number\r\n col: number\r\n row: number\r\n table: any\r\n}) =>\r\n | boolean\r\n | {\r\n display?: boolean\r\n disabled?: boolean\r\n }\r\n | null\r\n | undefined",
|
|
132
|
+
"default": "null"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "actionsMaxCount",
|
|
136
|
+
"description": "操作列最大显示按钮数量",
|
|
137
|
+
"type": "number",
|
|
138
|
+
"default": "3"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "actionsLabel",
|
|
142
|
+
"description": "操作列标题",
|
|
143
|
+
"type": "string",
|
|
144
|
+
"default": "'操作'"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "isAnimationAppear",
|
|
148
|
+
"description": "是否开启动画出现",
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"default": "false"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "heightMode",
|
|
154
|
+
"description": "高度模式 full 充满父容器 auto 根据内容自适应",
|
|
155
|
+
"type": "'full' | 'auto'",
|
|
156
|
+
"default": "'full'"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "maxHeight",
|
|
160
|
+
"description": "最大高度,仅在 heightMode 为 auto 时生效",
|
|
161
|
+
"type": "string|number",
|
|
162
|
+
"default": "undefined"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "highlightMode",
|
|
166
|
+
"description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
|
|
167
|
+
"type": "'cross' | 'row' | 'column' | 'cell'",
|
|
168
|
+
"default": "'row'"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "editConfig",
|
|
172
|
+
"description": "编辑参数",
|
|
173
|
+
"type": "EditConfigType",
|
|
174
|
+
"default": "() => ({})"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "emptyTipText",
|
|
178
|
+
"description": "空数据提示文本",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"default": "'暂无数据'"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "subColumns",
|
|
184
|
+
"description": "子表列配置",
|
|
185
|
+
"type": "any[]",
|
|
186
|
+
"default": "() => []"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "isSubShowNumber",
|
|
190
|
+
"description": "是否显示子表序号",
|
|
191
|
+
"type": "boolean",
|
|
192
|
+
"default": "true"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "subActions",
|
|
196
|
+
"description": "子表行内操作按钮配置",
|
|
197
|
+
"type": "ButtonCompType[]",
|
|
198
|
+
"default": "() => []"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "loadChildren",
|
|
202
|
+
"description": "懒加载子节点数据",
|
|
203
|
+
"type": "(record: Record<string, any>) => Promise<any[]>",
|
|
204
|
+
"default": "null"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"events": [
|
|
208
|
+
{
|
|
209
|
+
"name": "ready",
|
|
210
|
+
"description": "表格实例创建完成时触发",
|
|
211
|
+
"type": "any"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "selectionChanged",
|
|
215
|
+
"description": "选中数据变化时触发",
|
|
216
|
+
"type": "{\r\n isMultiple: boolean\r\n selections: Record<string, any>[]\r\n record: Record<string, any>\r\n checked: boolean\r\n}"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "selectRecordsChanged",
|
|
220
|
+
"description": "根据 selectStateKey 初始化多选选中项时触发",
|
|
221
|
+
"type": "Array"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "update:tablePage",
|
|
225
|
+
"description": "",
|
|
226
|
+
"type": "number"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "update:pageSize",
|
|
230
|
+
"description": "",
|
|
231
|
+
"type": "number"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "loadPageData",
|
|
235
|
+
"description": "当前页面",
|
|
236
|
+
"type": "{ rows: number; page: number }"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "rowChange",
|
|
240
|
+
"description": "行数据变化",
|
|
241
|
+
"type": "Record"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "update:modelValue",
|
|
245
|
+
"description": "v-model 双向绑定更新事件",
|
|
246
|
+
"type": "Array"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "change",
|
|
250
|
+
"description": "变更事件",
|
|
251
|
+
"type": "{\r\n id: string\r\n value: any\r\n data: any\r\n formData: Record<string, any>\r\n tableData: Record<string, any>[]\r\n type: 'add' | 'delete' | 'update' | 'sort'\r\n}"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"slots": [],
|
|
255
|
+
"methods": [
|
|
256
|
+
{
|
|
257
|
+
"name": "getInstance",
|
|
258
|
+
"description": "输入值【作为表单的编辑表格使用】",
|
|
259
|
+
"type": "() => void"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "setRecords",
|
|
263
|
+
"description": "输入值【作为表单的编辑表格使用】",
|
|
264
|
+
"type": "() => void"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "getRecords",
|
|
268
|
+
"description": "",
|
|
269
|
+
"type": "() => void"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "getSelection",
|
|
273
|
+
"description": "输入值【作为表单的编辑表格使用】",
|
|
274
|
+
"type": "() => void"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "setSelection",
|
|
278
|
+
"description": "输入值【作为表单的编辑表格使用】",
|
|
279
|
+
"type": "() => void"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "renderTable",
|
|
283
|
+
"description": "",
|
|
284
|
+
"type": "() => void"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"types": [
|
|
288
|
+
{
|
|
289
|
+
"name": "TableColumnConfig",
|
|
290
|
+
"properties": [
|
|
291
|
+
{
|
|
292
|
+
"name": "width",
|
|
293
|
+
"type": "number",
|
|
294
|
+
"description": "列的宽度"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "minWidth",
|
|
298
|
+
"type": "number",
|
|
299
|
+
"description": "列的最小宽度"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "maxWidth",
|
|
303
|
+
"type": "number",
|
|
304
|
+
"description": "列的最大宽度"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "align",
|
|
308
|
+
"type": "'left' | 'center' | 'right'",
|
|
309
|
+
"description": "列的对齐方式"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "headerAlign",
|
|
313
|
+
"type": "'left' | 'center' | 'right'",
|
|
314
|
+
"description": "列标题的对齐方式,不设置时默认使用 align"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "dataType",
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "数据类型 dataItem 数据字典 dataView 数据视图 options 选项 user 用户 department 部门 company 公司"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "dataCode",
|
|
323
|
+
"type": "string",
|
|
324
|
+
"description": "数据编码"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "options",
|
|
328
|
+
"type": "Record<string, any>",
|
|
329
|
+
"description": "数据"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "valueType",
|
|
333
|
+
"type": "string",
|
|
334
|
+
"description": "数据值类型 text, number, text_list, number_list"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "filter",
|
|
338
|
+
"type": "TableColumnFilter",
|
|
339
|
+
"description": "列的过滤器"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "sorter",
|
|
343
|
+
"type": "TableColumnSorter",
|
|
344
|
+
"description": "列的排序器"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "fieldFormat",
|
|
348
|
+
"type": "(row: Record<string, any>) => any",
|
|
349
|
+
"description": "列的格式化函数"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "frozen",
|
|
353
|
+
"type": "'left' | 'right'",
|
|
354
|
+
"description": "冻结列 left 左侧冻结 right 右侧冻结"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "TableColumnFilter",
|
|
360
|
+
"properties": [
|
|
361
|
+
{
|
|
362
|
+
"name": "isSearchKeyword",
|
|
363
|
+
"type": "boolean",
|
|
364
|
+
"description": "是否是搜索关键字"
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "TableColumnSorter",
|
|
370
|
+
"properties": [
|
|
371
|
+
{
|
|
372
|
+
"name": "isNot",
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"description": "是否不需要排序"
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "ColumnSchemaConfig",
|
|
380
|
+
"properties": [
|
|
381
|
+
{
|
|
382
|
+
"name": "id",
|
|
383
|
+
"type": "string",
|
|
384
|
+
"description": "id"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "type",
|
|
388
|
+
"type": "string",
|
|
389
|
+
"description": "类型"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "customLayout",
|
|
393
|
+
"type": "(args: any) => any",
|
|
394
|
+
"description": "自定义布局函数"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "config",
|
|
398
|
+
"type": "TableColumnCompConfig & {\r\n /**\r\n * @zh 列的标题\r\n */\r\n label: string\r\n }",
|
|
399
|
+
"description": "列配置"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "children",
|
|
403
|
+
"type": "ColumnSchemaConfig[]",
|
|
404
|
+
"description": "子集"
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
}
|