@a2simcode/ui 0.0.311 → 0.0.313

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,495 +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": "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
- }
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: {\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",
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": "{\n isMultiple: boolean\n selections: Record<string, any>[]\n record: Record<string, any>\n checked: boolean\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": "{\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}"
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": "{\n start: { col: number; row: number }\n end: { col: number; row: number }\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 & {\n /**\n * @zh 列的标题\n */\n label: string\n }",
485
+ "description": "列配置"
486
+ },
487
+ {
488
+ "name": "children",
489
+ "type": "ColumnSchemaConfig[]",
490
+ "description": "子集"
491
+ }
492
+ ]
493
+ }
494
+ ]
495
+ }