@a2simcode/ui 0.0.311 → 0.0.314

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,343 +1,343 @@
1
- export default {
2
- "props": [
3
- {
4
- "name": "viewMode",
5
- "description": "显示方式 table 表格 card 卡片",
6
- "type": "'table' | 'card'",
7
- "default": "'table'"
8
- },
9
- {
10
- "name": "modelValue",
11
- "description": "输入值【作为表单的编辑表格使用】",
12
- "type": "Record<string, any>[]",
13
- "default": "() => []"
14
- },
15
- {
16
- "name": "columns",
17
- "description": "表格列配置",
18
- "type": "SchemaConfig[]",
19
- "default": "() => []"
20
- },
21
- {
22
- "name": "columnFilter",
23
- "description": "列过滤(用于隐藏列)",
24
- "type": "string[]",
25
- "default": "() => []"
26
- },
27
- {
28
- "name": "searchList",
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": "checkStrictly",
53
- "description": "是否严格的遵循父子不互相关联的做法(仅 isTree 为 true 时生效)",
54
- "type": "boolean",
55
- "default": "false"
56
- },
57
- {
58
- "name": "isShowNumber",
59
- "description": "是否显示序号",
60
- "type": "boolean",
61
- "default": "true"
62
- },
63
- {
64
- "name": "isMultiple",
65
- "description": "是否开启多选",
66
- "type": "boolean",
67
- "default": "false"
68
- },
69
- {
70
- "name": "selectStateKey",
71
- "description": "选状态字段名",
72
- "type": "string",
73
- "default": "''"
74
- },
75
- {
76
- "name": "multipleDisabled",
77
- "description": "多选禁用判断",
78
- "type": "(record: Record<string, any>) => boolean",
79
- "default": "null"
80
- },
81
- {
82
- "name": "isPage",
83
- "description": "是否分页",
84
- "type": "boolean",
85
- "default": "false"
86
- },
87
- {
88
- "name": "pageSizes",
89
- "description": "每页显示个数选择器的选项设置",
90
- "type": "array"
91
- },
92
- {
93
- "name": "pageSize",
94
- "description": "当前显示页数",
95
- "type": "number",
96
- "default": "100"
97
- },
98
- {
99
- "name": "subColumns",
100
- "description": "子表列配置",
101
- "type": "any[]",
102
- "default": "() => []"
103
- },
104
- {
105
- "name": "isSubShowNumber",
106
- "description": "是否显示子表序号",
107
- "type": "boolean",
108
- "default": "true"
109
- },
110
- {
111
- "name": "subActions",
112
- "description": "子表行内操作按钮配置",
113
- "type": "ButtonCompType[]",
114
- "default": "() => []"
115
- },
116
- {
117
- "name": "loadChildren",
118
- "description": "懒加载子节点数据",
119
- "type": "(record: Record<string, any>) => Promise<any[]>",
120
- "default": "null"
121
- },
122
- {
123
- "name": "rowKey",
124
- "description": "行主键",
125
- "type": "string",
126
- "default": "undefined"
127
- },
128
- {
129
- "name": "sort",
130
- "description": "排序字段",
131
- "type": "string"
132
- },
133
- {
134
- "name": "buttons",
135
- "description": "面板按钮",
136
- "type": "ButtonCompType[]",
137
- "default": "() => []"
138
- },
139
- {
140
- "name": "batchButtons",
141
- "description": "批量操作按钮配置(选中记录后显示)",
142
- "type": "ButtonCompType[]",
143
- "default": "() => []"
144
- },
145
- {
146
- "name": "actions",
147
- "description": "行内操作按钮配置",
148
- "type": "ButtonCompType[]",
149
- "default": "() => []"
150
- },
151
- {
152
- "name": "actionsMaxCount",
153
- "description": "操作列最大显示按钮数量",
154
- "type": "number",
155
- "default": "3"
156
- },
157
- {
158
- "name": "actionsLabel",
159
- "description": "操作列标题",
160
- "type": "string",
161
- "default": "'操作'"
162
- },
163
- {
164
- "name": "actionFilter",
165
- "description": "行内操作按钮过滤方法",
166
- "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",
167
- "default": "null"
168
- },
169
- {
170
- "name": "loadData",
171
- "description": "加载数据方法",
172
- "type": "(params: Record<string, any>, isRefreshBtn?: boolean) => Promise<any>"
173
- },
174
- {
175
- "name": "remoteSelection",
176
- "description": "选中数据是否远程拉取,开启后「仅显示选中」会按选中 ID 调用 loadData(参数含 ids 与 field)从接口拉取完整选中数据",
177
- "type": "boolean",
178
- "default": "false"
179
- },
180
- {
181
- "name": "immediate",
182
- "description": "是否立即执行加载数据",
183
- "type": "boolean",
184
- "default": "true"
185
- },
186
- {
187
- "name": "noPadding",
188
- "description": "不要边距",
189
- "type": "boolean"
190
- },
191
- {
192
- "name": "highlightMode",
193
- "description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
194
- "type": "'cross' | 'row' | 'column' | 'cell'",
195
- "default": "'row'"
196
- },
197
- {
198
- "name": "showFilterButton",
199
- "description": "是否显示筛选按钮(包含右侧固定筛选面板)",
200
- "type": "boolean",
201
- "default": "true"
202
- },
203
- {
204
- "name": "showOrderButton",
205
- "description": "是否显示排序按钮",
206
- "type": "boolean",
207
- "default": "true"
208
- },
209
- {
210
- "name": "showColumnButton",
211
- "description": "是否显示列管理按钮",
212
- "type": "boolean",
213
- "default": "true"
214
- },
215
- {
216
- "name": "showRefreshButton",
217
- "description": "是否显示刷新按钮",
218
- "type": "boolean",
219
- "default": "true"
220
- },
221
- {
222
- "name": "showFullscreenButton",
223
- "description": "是否显示全屏按钮",
224
- "type": "boolean",
225
- "default": "true"
226
- },
227
- {
228
- "name": "renderVNode",
229
- "description": "自定义渲染 VNode",
230
- "type": "(params: Record<string, any>) => import('vue').VNode"
231
- },
232
- {
233
- "name": "renderVNodeClass",
234
- "description": "自定义渲染 VNode 类名",
235
- "type": "string"
236
- },
237
- {
238
- "name": "rowDrag",
239
- "description": "是否支持行拖动排序",
240
- "type": "boolean",
241
- "default": "false"
242
- },
243
- {
244
- "name": "cardLabelKey",
245
- "description": "卡片视图标题字段名",
246
- "type": "string",
247
- "default": "'f_Name'"
248
- },
249
- {
250
- "name": "cardLoadSrc",
251
- "description": "卡片视图图片加载方法",
252
- "type": "(item: Record<string, any>) => string",
253
- "default": "undefined"
254
- },
255
- {
256
- "name": "cardFallback",
257
- "description": "卡片视图图片加载失败兜底图",
258
- "type": "string",
259
- "default": "''"
260
- },
261
- {
262
- "name": "cardBackgroundColor",
263
- "description": "卡片视图背景色",
264
- "type": "string",
265
- "default": "''"
266
- },
267
- {
268
- "name": "cardShowBigEditButton",
269
- "description": "卡片视图是否展示大编辑按钮(需要 buttons 中包含 id 为 edit 的按钮)",
270
- "type": "boolean",
271
- "default": "false"
272
- },
273
- {
274
- "name": "cardWidth",
275
- "description": "卡片视图卡片宽度",
276
- "type": "number",
277
- "default": "258"
278
- },
279
- {
280
- "name": "cardHeight",
281
- "description": "卡片视图卡片高度",
282
- "type": "number",
283
- "default": "184"
284
- },
285
- {
286
- "name": "cardImageFit",
287
- "description": "卡片视图图片填充方式",
288
- "type": "'fill' | 'contain' | 'cover' | 'none' | 'scale-down'",
289
- "default": "'fill'"
290
- }
291
- ],
292
- "events": [
293
- {
294
- "name": "select",
295
- "description": "",
296
- "type": "unknown"
297
- },
298
- {
299
- "name": "ready",
300
- "description": "",
301
- "type": "unknown"
302
- }
303
- ],
304
- "slots": [],
305
- "methods": [
306
- {
307
- "name": "refreshData",
308
- "description": "",
309
- "type": "async () => Promise<any>"
310
- },
311
- {
312
- "name": "resetData",
313
- "description": "",
314
- "type": "async () => Promise<any>"
315
- },
316
- {
317
- "name": "getSelection",
318
- "description": "",
319
- "type": "() => void"
320
- },
321
- {
322
- "name": "setSelection",
323
- "description": "",
324
- "type": "() => void"
325
- },
326
- {
327
- "name": "setSelectionById",
328
- "description": "",
329
- "type": "() => void"
330
- },
331
- {
332
- "name": "clearSelection",
333
- "description": "",
334
- "type": "() => void"
335
- },
336
- {
337
- "name": "getTableRef",
338
- "description": "",
339
- "type": "() => void"
340
- }
341
- ],
342
- "types": []
343
- }
1
+ export default {
2
+ "props": [
3
+ {
4
+ "name": "viewMode",
5
+ "description": "显示方式 table 表格 card 卡片",
6
+ "type": "'table' | 'card'",
7
+ "default": "'table'"
8
+ },
9
+ {
10
+ "name": "modelValue",
11
+ "description": "输入值【作为表单的编辑表格使用】",
12
+ "type": "Record<string, any>[]",
13
+ "default": "() => []"
14
+ },
15
+ {
16
+ "name": "columns",
17
+ "description": "表格列配置",
18
+ "type": "SchemaConfig[]",
19
+ "default": "() => []"
20
+ },
21
+ {
22
+ "name": "columnFilter",
23
+ "description": "列过滤(用于隐藏列)",
24
+ "type": "string[]",
25
+ "default": "() => []"
26
+ },
27
+ {
28
+ "name": "searchList",
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": "checkStrictly",
53
+ "description": "是否严格的遵循父子不互相关联的做法(仅 isTree 为 true 时生效)",
54
+ "type": "boolean",
55
+ "default": "false"
56
+ },
57
+ {
58
+ "name": "isShowNumber",
59
+ "description": "是否显示序号",
60
+ "type": "boolean",
61
+ "default": "true"
62
+ },
63
+ {
64
+ "name": "isMultiple",
65
+ "description": "是否开启多选",
66
+ "type": "boolean",
67
+ "default": "false"
68
+ },
69
+ {
70
+ "name": "selectStateKey",
71
+ "description": "选状态字段名",
72
+ "type": "string",
73
+ "default": "''"
74
+ },
75
+ {
76
+ "name": "multipleDisabled",
77
+ "description": "多选禁用判断",
78
+ "type": "(record: Record<string, any>) => boolean",
79
+ "default": "null"
80
+ },
81
+ {
82
+ "name": "isPage",
83
+ "description": "是否分页",
84
+ "type": "boolean",
85
+ "default": "false"
86
+ },
87
+ {
88
+ "name": "pageSizes",
89
+ "description": "每页显示个数选择器的选项设置",
90
+ "type": "array"
91
+ },
92
+ {
93
+ "name": "pageSize",
94
+ "description": "当前显示页数",
95
+ "type": "number",
96
+ "default": "100"
97
+ },
98
+ {
99
+ "name": "subColumns",
100
+ "description": "子表列配置",
101
+ "type": "any[]",
102
+ "default": "() => []"
103
+ },
104
+ {
105
+ "name": "isSubShowNumber",
106
+ "description": "是否显示子表序号",
107
+ "type": "boolean",
108
+ "default": "true"
109
+ },
110
+ {
111
+ "name": "subActions",
112
+ "description": "子表行内操作按钮配置",
113
+ "type": "ButtonCompType[]",
114
+ "default": "() => []"
115
+ },
116
+ {
117
+ "name": "loadChildren",
118
+ "description": "懒加载子节点数据",
119
+ "type": "(record: Record<string, any>) => Promise<any[]>",
120
+ "default": "null"
121
+ },
122
+ {
123
+ "name": "rowKey",
124
+ "description": "行主键",
125
+ "type": "string",
126
+ "default": "undefined"
127
+ },
128
+ {
129
+ "name": "sort",
130
+ "description": "排序字段",
131
+ "type": "string"
132
+ },
133
+ {
134
+ "name": "buttons",
135
+ "description": "面板按钮",
136
+ "type": "ButtonCompType[]",
137
+ "default": "() => []"
138
+ },
139
+ {
140
+ "name": "batchButtons",
141
+ "description": "批量操作按钮配置(选中记录后显示)",
142
+ "type": "ButtonCompType[]",
143
+ "default": "() => []"
144
+ },
145
+ {
146
+ "name": "actions",
147
+ "description": "行内操作按钮配置",
148
+ "type": "ButtonCompType[]",
149
+ "default": "() => []"
150
+ },
151
+ {
152
+ "name": "actionsMaxCount",
153
+ "description": "操作列最大显示按钮数量",
154
+ "type": "number",
155
+ "default": "3"
156
+ },
157
+ {
158
+ "name": "actionsLabel",
159
+ "description": "操作列标题",
160
+ "type": "string",
161
+ "default": "'操作'"
162
+ },
163
+ {
164
+ "name": "actionFilter",
165
+ "description": "行内操作按钮过滤方法",
166
+ "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",
167
+ "default": "null"
168
+ },
169
+ {
170
+ "name": "loadData",
171
+ "description": "加载数据方法",
172
+ "type": "(params: Record<string, any>, isRefreshBtn?: boolean) => Promise<any>"
173
+ },
174
+ {
175
+ "name": "remoteSelection",
176
+ "description": "选中数据是否远程拉取,开启后「仅显示选中」会按选中 ID 调用 loadData(参数含 ids 与 field)从接口拉取完整选中数据",
177
+ "type": "boolean",
178
+ "default": "false"
179
+ },
180
+ {
181
+ "name": "immediate",
182
+ "description": "是否立即执行加载数据",
183
+ "type": "boolean",
184
+ "default": "true"
185
+ },
186
+ {
187
+ "name": "noPadding",
188
+ "description": "不要边距",
189
+ "type": "boolean"
190
+ },
191
+ {
192
+ "name": "highlightMode",
193
+ "description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
194
+ "type": "'cross' | 'row' | 'column' | 'cell'",
195
+ "default": "'row'"
196
+ },
197
+ {
198
+ "name": "showFilterButton",
199
+ "description": "是否显示筛选按钮(包含右侧固定筛选面板)",
200
+ "type": "boolean",
201
+ "default": "true"
202
+ },
203
+ {
204
+ "name": "showOrderButton",
205
+ "description": "是否显示排序按钮",
206
+ "type": "boolean",
207
+ "default": "true"
208
+ },
209
+ {
210
+ "name": "showColumnButton",
211
+ "description": "是否显示列管理按钮",
212
+ "type": "boolean",
213
+ "default": "true"
214
+ },
215
+ {
216
+ "name": "showRefreshButton",
217
+ "description": "是否显示刷新按钮",
218
+ "type": "boolean",
219
+ "default": "true"
220
+ },
221
+ {
222
+ "name": "showFullscreenButton",
223
+ "description": "是否显示全屏按钮",
224
+ "type": "boolean",
225
+ "default": "true"
226
+ },
227
+ {
228
+ "name": "renderVNode",
229
+ "description": "自定义渲染 VNode",
230
+ "type": "(params: Record<string, any>) => import('vue').VNode"
231
+ },
232
+ {
233
+ "name": "renderVNodeClass",
234
+ "description": "自定义渲染 VNode 类名",
235
+ "type": "string"
236
+ },
237
+ {
238
+ "name": "rowDrag",
239
+ "description": "是否支持行拖动排序",
240
+ "type": "boolean",
241
+ "default": "false"
242
+ },
243
+ {
244
+ "name": "cardLabelKey",
245
+ "description": "卡片视图标题字段名",
246
+ "type": "string",
247
+ "default": "'f_Name'"
248
+ },
249
+ {
250
+ "name": "cardLoadSrc",
251
+ "description": "卡片视图图片加载方法",
252
+ "type": "(item: Record<string, any>) => string",
253
+ "default": "undefined"
254
+ },
255
+ {
256
+ "name": "cardFallback",
257
+ "description": "卡片视图图片加载失败兜底图",
258
+ "type": "string",
259
+ "default": "''"
260
+ },
261
+ {
262
+ "name": "cardBackgroundColor",
263
+ "description": "卡片视图背景色",
264
+ "type": "string",
265
+ "default": "''"
266
+ },
267
+ {
268
+ "name": "cardShowBigEditButton",
269
+ "description": "卡片视图是否展示大编辑按钮(需要 buttons 中包含 id 为 edit 的按钮)",
270
+ "type": "boolean",
271
+ "default": "false"
272
+ },
273
+ {
274
+ "name": "cardWidth",
275
+ "description": "卡片视图卡片宽度",
276
+ "type": "number",
277
+ "default": "258"
278
+ },
279
+ {
280
+ "name": "cardHeight",
281
+ "description": "卡片视图卡片高度",
282
+ "type": "number",
283
+ "default": "184"
284
+ },
285
+ {
286
+ "name": "cardImageFit",
287
+ "description": "卡片视图图片填充方式",
288
+ "type": "'fill' | 'contain' | 'cover' | 'none' | 'scale-down'",
289
+ "default": "'fill'"
290
+ }
291
+ ],
292
+ "events": [
293
+ {
294
+ "name": "select",
295
+ "description": "",
296
+ "type": "unknown"
297
+ },
298
+ {
299
+ "name": "ready",
300
+ "description": "",
301
+ "type": "unknown"
302
+ }
303
+ ],
304
+ "slots": [],
305
+ "methods": [
306
+ {
307
+ "name": "refreshData",
308
+ "description": "",
309
+ "type": "async () => Promise<any>"
310
+ },
311
+ {
312
+ "name": "resetData",
313
+ "description": "",
314
+ "type": "async () => Promise<any>"
315
+ },
316
+ {
317
+ "name": "getSelection",
318
+ "description": "",
319
+ "type": "() => void"
320
+ },
321
+ {
322
+ "name": "setSelection",
323
+ "description": "",
324
+ "type": "() => void"
325
+ },
326
+ {
327
+ "name": "setSelectionById",
328
+ "description": "",
329
+ "type": "() => void"
330
+ },
331
+ {
332
+ "name": "clearSelection",
333
+ "description": "",
334
+ "type": "() => void"
335
+ },
336
+ {
337
+ "name": "getTableRef",
338
+ "description": "",
339
+ "type": "() => void"
340
+ }
341
+ ],
342
+ "types": []
343
+ }