@a2simcode/ui 0.0.308 → 0.0.311

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.
@@ -1,489 +1,495 @@
1
- export default {
2
- "props": [
3
- {
4
- "name": "id",
5
- "description": "",
6
- "type": "string",
7
- "default": "''"
8
- },
9
- {
10
- "name": "label",
11
- "description": "",
12
- "type": "string",
13
- "default": "''"
14
- },
15
- {
16
- "name": "modelValue",
17
- "description": "输入值【作为表单的编辑表格使用】",
18
- "type": "Record<string, any>[]",
19
- "default": "() => []"
20
- },
21
- {
22
- "name": "columns",
23
- "description": "表格列配置(支持树形结构)",
24
- "type": "ColumnSchemaConfig[]",
25
- "default": "() => []"
26
- },
27
- {
28
- "name": "mergeHeader",
29
- "description": "合并表头配置,value 支持逗号分隔列 id 或前置合并表头 _i",
30
- "type": "MergeHeaderOption[]",
31
- "default": "() => []"
32
- },
33
- {
34
- "name": "columnFilter",
35
- "description": "列过滤(用于隐藏列)",
36
- "type": "string[]",
37
- "default": "() => []"
38
- },
39
- {
40
- "name": "records",
41
- "description": "表格数据",
42
- "type": "Record<string, any>[]",
43
- "default": "() => []"
44
- },
45
- {
46
- "name": "isTree",
47
- "description": "是否是树形结构",
48
- "type": "boolean",
49
- "default": "false"
50
- },
51
- {
52
- "name": "defaultExpandAll",
53
- "description": "是否默认全部展开(仅 isTree 为 true 且非懒加载时生效)",
54
- "type": "boolean",
55
- "default": "false"
56
- },
57
- {
58
- "name": "parentKey",
59
- "description": "父级字段名(isTree 为 true 时用于将扁平数据转换成树形数据)",
60
- "type": "string",
61
- "default": "''"
62
- },
63
- {
64
- "name": "isShowNumber",
65
- "description": "是否显示序号",
66
- "type": "boolean",
67
- "default": "true"
68
- },
69
- {
70
- "name": "isMultiple",
71
- "description": "是否开启多选",
72
- "type": "boolean",
73
- "default": "false"
74
- },
75
- {
76
- "name": "selectStateKey",
77
- "description": "选状态字段名",
78
- "type": "string",
79
- "default": "''"
80
- },
81
- {
82
- "name": "multipleDisabled",
83
- "description": "多选禁用判断",
84
- "type": "(record: Record<string, any>) => boolean",
85
- "default": "null"
86
- },
87
- {
88
- "name": "isPage",
89
- "description": "是否分页",
90
- "type": "boolean",
91
- "default": "false"
92
- },
93
- {
94
- "name": "pageLayoutSimple",
95
- "description": "分页样式是否是简洁模式",
96
- "type": "boolean",
97
- "default": "false"
98
- },
99
- {
100
- "name": "pageSizes",
101
- "description": "每页显示个数选择器的选项设置",
102
- "type": "array"
103
- },
104
- {
105
- "name": "pageTotal",
106
- "description": "总的数据条数",
107
- "type": "number",
108
- "default": "0"
109
- },
110
- {
111
- "name": "tablePage",
112
- "description": "当前页面",
113
- "type": "number",
114
- "default": "1"
115
- },
116
- {
117
- "name": "pageSize",
118
- "description": "当前显示页数",
119
- "type": "number",
120
- "default": "100"
121
- },
122
- {
123
- "name": "rowKey",
124
- "description": "行主键",
125
- "type": "string",
126
- "default": "'id'"
127
- },
128
- {
129
- "name": "rowDrag",
130
- "description": "是否支持行拖动排序",
131
- "type": "boolean",
132
- "default": "false"
133
- },
134
- {
135
- "name": "actions",
136
- "description": "行内操作按钮配置",
137
- "type": "ButtonCompType[]",
138
- "default": "() => []"
139
- },
140
- {
141
- "name": "actionFilter",
142
- "description": "行内操作按钮过滤方法",
143
- "type": "(params: {\n action: ButtonCompType\n record: Record<string, any>\n recordIndex: number\n col: number\n row: number\n table: any\n}) =>\n | boolean\n | {\n display?: boolean\n disabled?: boolean\n }\n | null\n | undefined",
144
- "default": "null"
145
- },
146
- {
147
- "name": "actionsMaxCount",
148
- "description": "操作列最大显示按钮数量",
149
- "type": "number",
150
- "default": "3"
151
- },
152
- {
153
- "name": "actionsLabel",
154
- "description": "操作列标题",
155
- "type": "string",
156
- "default": "'操作'"
157
- },
158
- {
159
- "name": "isAnimationAppear",
160
- "description": "是否开启动画出现",
161
- "type": "boolean",
162
- "default": "false"
163
- },
164
- {
165
- "name": "heightMode",
166
- "description": "高度模式 full 充满父容器 auto 根据内容自适应",
167
- "type": "'full' | 'auto'",
168
- "default": "'full'"
169
- },
170
- {
171
- "name": "maxHeight",
172
- "description": "最大高度,仅在 heightMode auto 时生效",
173
- "type": "string|number",
174
- "default": "undefined"
175
- },
176
- {
177
- "name": "isRowFixed",
178
- "description": "是否固定行数",
179
- "type": "boolean",
180
- "default": "false"
181
- },
182
- {
183
- "name": "rowNum",
184
- "description": "固定行数,仅在 isRowFixed 为 true 时生效",
185
- "type": "number",
186
- "default": "0"
187
- },
188
- {
189
- "name": "highlightMode",
190
- "description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
191
- "type": "'cross' | 'row' | 'column' | 'cell'",
192
- "default": "'row'"
193
- },
194
- {
195
- "name": "editConfig",
196
- "description": "编辑参数",
197
- "type": "EditConfigType",
198
- "default": "() => ({})"
199
- },
200
- {
201
- "name": "emptyTipText",
202
- "description": "空数据提示文本",
203
- "type": "string",
204
- "default": "'暂无数据'"
205
- },
206
- {
207
- "name": "subColumns",
208
- "description": "子表列配置",
209
- "type": "any[]",
210
- "default": "() => []"
211
- },
212
- {
213
- "name": "isSubShowNumber",
214
- "description": "是否显示子表序号",
215
- "type": "boolean",
216
- "default": "true"
217
- },
218
- {
219
- "name": "subActions",
220
- "description": "子表行内操作按钮配置",
221
- "type": "ButtonCompType[]",
222
- "default": "() => []"
223
- },
224
- {
225
- "name": "loadChildren",
226
- "description": "懒加载子节点数据",
227
- "type": "(record: Record<string, any>) => Promise<any[]>",
228
- "default": "null"
229
- },
230
- {
231
- "name": "customMergeCell",
232
- "description": "自定义合并单元格配置,支持回调函数或合并规则数组",
233
- "type": "CustomMergeCellOption",
234
- "default": "null"
235
- }
236
- ],
237
- "events": [
238
- {
239
- "name": "ready",
240
- "description": "表格实例创建完成时触发",
241
- "type": "any"
242
- },
243
- {
244
- "name": "selectionChanged",
245
- "description": "选中数据变化时触发",
246
- "type": "{\n isMultiple: boolean\n selections: Record<string, any>[]\n record: Record<string, any>\n checked: boolean\n}"
247
- },
248
- {
249
- "name": "selectRecordsChanged",
250
- "description": "根据 selectStateKey 初始化多选选中项时触发",
251
- "type": "Array"
252
- },
253
- {
254
- "name": "update:tablePage",
255
- "description": "",
256
- "type": "number"
257
- },
258
- {
259
- "name": "update:pageSize",
260
- "description": "",
261
- "type": "number"
262
- },
263
- {
264
- "name": "loadPageData",
265
- "description": "当前页面",
266
- "type": "{ rows: number; page: number }"
267
- },
268
- {
269
- "name": "rowChange",
270
- "description": "行数据变化",
271
- "type": "Record"
272
- },
273
- {
274
- "name": "update:modelValue",
275
- "description": "v-model 双向绑定更新事件",
276
- "type": "Array"
277
- },
278
- {
279
- "name": "change",
280
- "description": "变更事件",
281
- "type": "{\n id: string\n value: any\n data: any\n formData: Record<string, any>\n tableData: Record<string, any>[]\n type: 'add' | 'delete' | 'update' | 'sort'\n}"
282
- }
283
- ],
284
- "slots": [],
285
- "methods": [
286
- {
287
- "name": "getInstance",
288
- "description": "输入值【作为表单的编辑表格使用】",
289
- "type": "() => void"
290
- },
291
- {
292
- "name": "setRecords",
293
- "description": "输入值【作为表单的编辑表格使用】",
294
- "type": "() => void"
295
- },
296
- {
297
- "name": "getRecords",
298
- "description": "",
299
- "type": "() => void"
300
- },
301
- {
302
- "name": "getSelection",
303
- "description": "输入值【作为表单的编辑表格使用】",
304
- "type": "() => void"
305
- },
306
- {
307
- "name": "setSelection",
308
- "description": "输入值【作为表单的编辑表格使用】",
309
- "type": "() => void"
310
- },
311
- {
312
- "name": "renderTable",
313
- "description": "",
314
- "type": "() => void"
315
- }
316
- ],
317
- "types": [
318
- {
319
- "name": "CustomMergeCellRule",
320
- "properties": [
321
- {
322
- "name": "text",
323
- "type": "string",
324
- "description": "合并单元格内的文字"
325
- },
326
- {
327
- "name": "range",
328
- "type": "{\n start: { col: number; row: number }\n end: { col: number; row: number }\n }",
329
- "description": "合并的范围"
330
- },
331
- {
332
- "name": "style",
333
- "type": "Record<string, any>",
334
- "description": "合并单元格的样式"
335
- }
336
- ]
337
- },
338
- {
339
- "name": "MergeHeaderOption",
340
- "properties": [
341
- {
342
- "name": "_i",
343
- "type": "string",
344
- "description": "表头配置唯一标识,可被后续 value 引用"
345
- },
346
- {
347
- "name": "label",
348
- "type": "string",
349
- "description": "合并表头显示文本"
350
- },
351
- {
352
- "name": "value",
353
- "type": "string",
354
- "description": "子列 id 或上级表头 _i,多个用英文逗号分隔"
355
- },
356
- {
357
- "name": "align",
358
- "type": "'left' | 'center' | 'right'",
359
- "description": "表头对齐方式"
360
- }
361
- ]
362
- },
363
- {
364
- "name": "TableColumnConfig",
365
- "properties": [
366
- {
367
- "name": "width",
368
- "type": "number",
369
- "description": "列的宽度"
370
- },
371
- {
372
- "name": "minWidth",
373
- "type": "number",
374
- "description": "列的最小宽度"
375
- },
376
- {
377
- "name": "maxWidth",
378
- "type": "number",
379
- "description": "列的最大宽度"
380
- },
381
- {
382
- "name": "align",
383
- "type": "'left' | 'center' | 'right'",
384
- "description": "列的对齐方式"
385
- },
386
- {
387
- "name": "headerAlign",
388
- "type": "'left' | 'center' | 'right'",
389
- "description": "列标题的对齐方式,不设置时默认使用 align"
390
- },
391
- {
392
- "name": "dataType",
393
- "type": "string",
394
- "description": "数据类型 dataItem 数据字典 dataView 数据视图 options 选项 user 用户 department 部门 company 公司"
395
- },
396
- {
397
- "name": "dataCode",
398
- "type": "string",
399
- "description": "数据编码"
400
- },
401
- {
402
- "name": "options",
403
- "type": "Record<string, any>",
404
- "description": "数据"
405
- },
406
- {
407
- "name": "valueType",
408
- "type": "string",
409
- "description": "数据值类型 text, number, text_list, number_list"
410
- },
411
- {
412
- "name": "filter",
413
- "type": "TableColumnFilter",
414
- "description": "列的过滤器"
415
- },
416
- {
417
- "name": "sorter",
418
- "type": "TableColumnSorter",
419
- "description": "列的排序器"
420
- },
421
- {
422
- "name": "fieldFormat",
423
- "type": "(row: Record<string, any>) => any",
424
- "description": "列的格式化函数"
425
- },
426
- {
427
- "name": "frozen",
428
- "type": "'left' | 'right'",
429
- "description": "冻结列 left 左侧冻结 right 右侧冻结"
430
- },
431
- {
432
- "name": "mergeCell",
433
- "type": "MergeCellOption",
434
- "description": "合并单元格配置,为 true 时自动合并相邻相同值的单元格,也可传入自定义合并函数"
435
- }
436
- ]
437
- },
438
- {
439
- "name": "TableColumnFilter",
440
- "properties": [
441
- {
442
- "name": "isSearchKeyword",
443
- "type": "boolean",
444
- "description": "是否是搜索关键字"
445
- }
446
- ]
447
- },
448
- {
449
- "name": "TableColumnSorter",
450
- "properties": [
451
- {
452
- "name": "isNot",
453
- "type": "boolean",
454
- "description": "是否不需要排序"
455
- }
456
- ]
457
- },
458
- {
459
- "name": "ColumnSchemaConfig",
460
- "properties": [
461
- {
462
- "name": "id",
463
- "type": "string",
464
- "description": "id"
465
- },
466
- {
467
- "name": "type",
468
- "type": "string",
469
- "description": "类型"
470
- },
471
- {
472
- "name": "customLayout",
473
- "type": "(args: any) => any",
474
- "description": "自定义布局函数"
475
- },
476
- {
477
- "name": "config",
478
- "type": "TableColumnCompConfig & {\n /**\n * @zh 列的标题\n */\n label: string\n }",
479
- "description": "列配置"
480
- },
481
- {
482
- "name": "children",
483
- "type": "ColumnSchemaConfig[]",
484
- "description": "子集"
485
- }
486
- ]
487
- }
488
- ]
489
- }
1
+ export default {
2
+ "props": [
3
+ {
4
+ "name": "id",
5
+ "description": "",
6
+ "type": "string",
7
+ "default": "''"
8
+ },
9
+ {
10
+ "name": "label",
11
+ "description": "",
12
+ "type": "string",
13
+ "default": "''"
14
+ },
15
+ {
16
+ "name": "modelValue",
17
+ "description": "输入值【作为表单的编辑表格使用】",
18
+ "type": "Record<string, any>[]",
19
+ "default": "() => []"
20
+ },
21
+ {
22
+ "name": "columns",
23
+ "description": "表格列配置(支持树形结构)",
24
+ "type": "ColumnSchemaConfig[]",
25
+ "default": "() => []"
26
+ },
27
+ {
28
+ "name": "mergeHeader",
29
+ "description": "合并表头配置,value 支持逗号分隔列 id 或前置合并表头 _i",
30
+ "type": "MergeHeaderOption[]",
31
+ "default": "() => []"
32
+ },
33
+ {
34
+ "name": "columnFilter",
35
+ "description": "列过滤(用于隐藏列)",
36
+ "type": "string[]",
37
+ "default": "() => []"
38
+ },
39
+ {
40
+ "name": "records",
41
+ "description": "表格数据",
42
+ "type": "Record<string, any>[]",
43
+ "default": "() => []"
44
+ },
45
+ {
46
+ "name": "isTree",
47
+ "description": "是否是树形结构",
48
+ "type": "boolean",
49
+ "default": "false"
50
+ },
51
+ {
52
+ "name": "defaultExpandAll",
53
+ "description": "是否默认全部展开(仅 isTree 为 true 且非懒加载时生效)",
54
+ "type": "boolean",
55
+ "default": "false"
56
+ },
57
+ {
58
+ "name": "parentKey",
59
+ "description": "父级字段名(isTree 为 true 时用于将扁平数据转换成树形数据)",
60
+ "type": "string",
61
+ "default": "''"
62
+ },
63
+ {
64
+ "name": "checkStrictly",
65
+ "description": "是否严格的遵循父子不互相关联的做法(仅 isTree 为 true 时生效)",
66
+ "type": "boolean",
67
+ "default": "false"
68
+ },
69
+ {
70
+ "name": "isShowNumber",
71
+ "description": "是否显示序号",
72
+ "type": "boolean",
73
+ "default": "true"
74
+ },
75
+ {
76
+ "name": "isMultiple",
77
+ "description": "是否开启多选",
78
+ "type": "boolean",
79
+ "default": "false"
80
+ },
81
+ {
82
+ "name": "selectStateKey",
83
+ "description": "选状态字段名",
84
+ "type": "string",
85
+ "default": "''"
86
+ },
87
+ {
88
+ "name": "multipleDisabled",
89
+ "description": "多选禁用判断",
90
+ "type": "(record: Record<string, any>) => boolean",
91
+ "default": "null"
92
+ },
93
+ {
94
+ "name": "isPage",
95
+ "description": "是否分页",
96
+ "type": "boolean",
97
+ "default": "false"
98
+ },
99
+ {
100
+ "name": "pageLayoutSimple",
101
+ "description": "分页样式是否是简洁模式",
102
+ "type": "boolean",
103
+ "default": "false"
104
+ },
105
+ {
106
+ "name": "pageSizes",
107
+ "description": "每页显示个数选择器的选项设置",
108
+ "type": "array"
109
+ },
110
+ {
111
+ "name": "pageTotal",
112
+ "description": "总的数据条数",
113
+ "type": "number",
114
+ "default": "0"
115
+ },
116
+ {
117
+ "name": "tablePage",
118
+ "description": "当前页面",
119
+ "type": "number",
120
+ "default": "1"
121
+ },
122
+ {
123
+ "name": "pageSize",
124
+ "description": "当前显示页数",
125
+ "type": "number",
126
+ "default": "100"
127
+ },
128
+ {
129
+ "name": "rowKey",
130
+ "description": "行主键",
131
+ "type": "string",
132
+ "default": "'id'"
133
+ },
134
+ {
135
+ "name": "rowDrag",
136
+ "description": "是否支持行拖动排序",
137
+ "type": "boolean",
138
+ "default": "false"
139
+ },
140
+ {
141
+ "name": "actions",
142
+ "description": "行内操作按钮配置",
143
+ "type": "ButtonCompType[]",
144
+ "default": "() => []"
145
+ },
146
+ {
147
+ "name": "actionFilter",
148
+ "description": "行内操作按钮过滤方法",
149
+ "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",
150
+ "default": "null"
151
+ },
152
+ {
153
+ "name": "actionsMaxCount",
154
+ "description": "操作列最大显示按钮数量",
155
+ "type": "number",
156
+ "default": "3"
157
+ },
158
+ {
159
+ "name": "actionsLabel",
160
+ "description": "操作列标题",
161
+ "type": "string",
162
+ "default": "'操作'"
163
+ },
164
+ {
165
+ "name": "isAnimationAppear",
166
+ "description": "是否开启动画出现",
167
+ "type": "boolean",
168
+ "default": "false"
169
+ },
170
+ {
171
+ "name": "heightMode",
172
+ "description": "高度模式 full 充满父容器 auto 根据内容自适应",
173
+ "type": "'full' | 'auto'",
174
+ "default": "'full'"
175
+ },
176
+ {
177
+ "name": "maxHeight",
178
+ "description": "最大高度,仅在 heightMode 为 auto 时生效",
179
+ "type": "string|number",
180
+ "default": "undefined"
181
+ },
182
+ {
183
+ "name": "isRowFixed",
184
+ "description": "是否固定行数",
185
+ "type": "boolean",
186
+ "default": "false"
187
+ },
188
+ {
189
+ "name": "rowNum",
190
+ "description": "固定行数,仅在 isRowFixed true 时生效",
191
+ "type": "number",
192
+ "default": "0"
193
+ },
194
+ {
195
+ "name": "highlightMode",
196
+ "description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
197
+ "type": "'cross' | 'row' | 'column' | 'cell'",
198
+ "default": "'row'"
199
+ },
200
+ {
201
+ "name": "editConfig",
202
+ "description": "编辑参数",
203
+ "type": "EditConfigType",
204
+ "default": "() => ({})"
205
+ },
206
+ {
207
+ "name": "emptyTipText",
208
+ "description": "空数据提示文本",
209
+ "type": "string",
210
+ "default": "'暂无数据'"
211
+ },
212
+ {
213
+ "name": "subColumns",
214
+ "description": "子表列配置",
215
+ "type": "any[]",
216
+ "default": "() => []"
217
+ },
218
+ {
219
+ "name": "isSubShowNumber",
220
+ "description": "是否显示子表序号",
221
+ "type": "boolean",
222
+ "default": "true"
223
+ },
224
+ {
225
+ "name": "subActions",
226
+ "description": "子表行内操作按钮配置",
227
+ "type": "ButtonCompType[]",
228
+ "default": "() => []"
229
+ },
230
+ {
231
+ "name": "loadChildren",
232
+ "description": "懒加载子节点数据",
233
+ "type": "(record: Record<string, any>) => Promise<any[]>",
234
+ "default": "null"
235
+ },
236
+ {
237
+ "name": "customMergeCell",
238
+ "description": "自定义合并单元格配置,支持回调函数或合并规则数组",
239
+ "type": "CustomMergeCellOption",
240
+ "default": "null"
241
+ }
242
+ ],
243
+ "events": [
244
+ {
245
+ "name": "ready",
246
+ "description": "表格实例创建完成时触发",
247
+ "type": "any"
248
+ },
249
+ {
250
+ "name": "selectionChanged",
251
+ "description": "选中数据变化时触发",
252
+ "type": "{\r\n isMultiple: boolean\r\n selections: Record<string, any>[]\r\n record: Record<string, any>\r\n checked: boolean\r\n}"
253
+ },
254
+ {
255
+ "name": "selectRecordsChanged",
256
+ "description": "根据 selectStateKey 初始化多选选中项时触发",
257
+ "type": "Array"
258
+ },
259
+ {
260
+ "name": "update:tablePage",
261
+ "description": "",
262
+ "type": "number"
263
+ },
264
+ {
265
+ "name": "update:pageSize",
266
+ "description": "",
267
+ "type": "number"
268
+ },
269
+ {
270
+ "name": "loadPageData",
271
+ "description": "当前页面",
272
+ "type": "{ rows: number; page: number }"
273
+ },
274
+ {
275
+ "name": "rowChange",
276
+ "description": "行数据变化",
277
+ "type": "Record"
278
+ },
279
+ {
280
+ "name": "update:modelValue",
281
+ "description": "v-model 双向绑定更新事件",
282
+ "type": "Array"
283
+ },
284
+ {
285
+ "name": "change",
286
+ "description": "变更事件",
287
+ "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}"
288
+ }
289
+ ],
290
+ "slots": [],
291
+ "methods": [
292
+ {
293
+ "name": "getInstance",
294
+ "description": "输入值【作为表单的编辑表格使用】",
295
+ "type": "() => void"
296
+ },
297
+ {
298
+ "name": "setRecords",
299
+ "description": "输入值【作为表单的编辑表格使用】",
300
+ "type": "() => void"
301
+ },
302
+ {
303
+ "name": "getRecords",
304
+ "description": "",
305
+ "type": "() => void"
306
+ },
307
+ {
308
+ "name": "getSelection",
309
+ "description": "输入值【作为表单的编辑表格使用】",
310
+ "type": "() => void"
311
+ },
312
+ {
313
+ "name": "setSelection",
314
+ "description": "输入值【作为表单的编辑表格使用】",
315
+ "type": "() => void"
316
+ },
317
+ {
318
+ "name": "renderTable",
319
+ "description": "",
320
+ "type": "() => void"
321
+ }
322
+ ],
323
+ "types": [
324
+ {
325
+ "name": "CustomMergeCellRule",
326
+ "properties": [
327
+ {
328
+ "name": "text",
329
+ "type": "string",
330
+ "description": "合并单元格内的文字"
331
+ },
332
+ {
333
+ "name": "range",
334
+ "type": "{\r\n start: { col: number; row: number }\r\n end: { col: number; row: number }\r\n }",
335
+ "description": "合并的范围"
336
+ },
337
+ {
338
+ "name": "style",
339
+ "type": "Record<string, any>",
340
+ "description": "合并单元格的样式"
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "name": "MergeHeaderOption",
346
+ "properties": [
347
+ {
348
+ "name": "_i",
349
+ "type": "string",
350
+ "description": "表头配置唯一标识,可被后续 value 引用"
351
+ },
352
+ {
353
+ "name": "label",
354
+ "type": "string",
355
+ "description": "合并表头显示文本"
356
+ },
357
+ {
358
+ "name": "value",
359
+ "type": "string",
360
+ "description": "子列 id 或上级表头 _i,多个用英文逗号分隔"
361
+ },
362
+ {
363
+ "name": "align",
364
+ "type": "'left' | 'center' | 'right'",
365
+ "description": "表头对齐方式"
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "name": "TableColumnConfig",
371
+ "properties": [
372
+ {
373
+ "name": "width",
374
+ "type": "number",
375
+ "description": "列的宽度"
376
+ },
377
+ {
378
+ "name": "minWidth",
379
+ "type": "number",
380
+ "description": "列的最小宽度"
381
+ },
382
+ {
383
+ "name": "maxWidth",
384
+ "type": "number",
385
+ "description": "列的最大宽度"
386
+ },
387
+ {
388
+ "name": "align",
389
+ "type": "'left' | 'center' | 'right'",
390
+ "description": "列的对齐方式"
391
+ },
392
+ {
393
+ "name": "headerAlign",
394
+ "type": "'left' | 'center' | 'right'",
395
+ "description": "列标题的对齐方式,不设置时默认使用 align"
396
+ },
397
+ {
398
+ "name": "dataType",
399
+ "type": "string",
400
+ "description": "数据类型 dataItem 数据字典 dataView 数据视图 options 选项 user 用户 department 部门 company 公司"
401
+ },
402
+ {
403
+ "name": "dataCode",
404
+ "type": "string",
405
+ "description": "数据编码"
406
+ },
407
+ {
408
+ "name": "options",
409
+ "type": "Record<string, any>",
410
+ "description": "数据"
411
+ },
412
+ {
413
+ "name": "valueType",
414
+ "type": "string",
415
+ "description": "数据值类型 text, number, text_list, number_list"
416
+ },
417
+ {
418
+ "name": "filter",
419
+ "type": "TableColumnFilter",
420
+ "description": "列的过滤器"
421
+ },
422
+ {
423
+ "name": "sorter",
424
+ "type": "TableColumnSorter",
425
+ "description": "列的排序器"
426
+ },
427
+ {
428
+ "name": "fieldFormat",
429
+ "type": "(row: Record<string, any>) => any",
430
+ "description": "列的格式化函数"
431
+ },
432
+ {
433
+ "name": "frozen",
434
+ "type": "'left' | 'right'",
435
+ "description": "冻结列 left 左侧冻结 right 右侧冻结"
436
+ },
437
+ {
438
+ "name": "mergeCell",
439
+ "type": "MergeCellOption",
440
+ "description": "合并单元格配置,为 true 时自动合并相邻相同值的单元格,也可传入自定义合并函数"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "name": "TableColumnFilter",
446
+ "properties": [
447
+ {
448
+ "name": "isSearchKeyword",
449
+ "type": "boolean",
450
+ "description": "是否是搜索关键字"
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ "name": "TableColumnSorter",
456
+ "properties": [
457
+ {
458
+ "name": "isNot",
459
+ "type": "boolean",
460
+ "description": "是否不需要排序"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "name": "ColumnSchemaConfig",
466
+ "properties": [
467
+ {
468
+ "name": "id",
469
+ "type": "string",
470
+ "description": "id"
471
+ },
472
+ {
473
+ "name": "type",
474
+ "type": "string",
475
+ "description": "类型"
476
+ },
477
+ {
478
+ "name": "customLayout",
479
+ "type": "(args: any) => any",
480
+ "description": "自定义布局函数"
481
+ },
482
+ {
483
+ "name": "config",
484
+ "type": "TableColumnCompConfig & {\r\n /**\r\n * @zh 列的标题\r\n */\r\n label: string\r\n }",
485
+ "description": "列配置"
486
+ },
487
+ {
488
+ "name": "children",
489
+ "type": "ColumnSchemaConfig[]",
490
+ "description": "子集"
491
+ }
492
+ ]
493
+ }
494
+ ]
495
+ }