@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.
@@ -92,7 +92,7 @@ export default {
92
92
  },
93
93
  {
94
94
  "name": "getCompType",
95
- "type": "(data: {\n config?: Record<string, any>\n formData: Record<string, any>\n getTableData?: () => Record<string, any>[]\n row?: Record<string, any>\n }) => string",
95
+ "type": "(data: {\n config?: Record<string, any>\n formData: Record<string, any>\n getTableData?: () => Record<string, any>[]\n row?: Record<string, any>\n pRowData?: Record<string, any>\n }) => string",
96
96
  "description": "获取组件类型"
97
97
  },
98
98
  {
@@ -21,6 +21,11 @@ export default {
21
21
  "type": "string",
22
22
  "default": "'设置'"
23
23
  },
24
+ {
25
+ "name": "icon",
26
+ "description": "设置按钮图标",
27
+ "type": "string"
28
+ },
24
29
  {
25
30
  "name": "title",
26
31
  "description": "弹窗标题",
@@ -114,6 +119,11 @@ export default {
114
119
  "type": "string",
115
120
  "description": "设置按钮文字"
116
121
  },
122
+ {
123
+ "name": "icon",
124
+ "type": "string",
125
+ "description": "设置按钮图标"
126
+ },
117
127
  {
118
128
  "name": "title",
119
129
  "type": "string",
@@ -22,6 +22,11 @@ export default {
22
22
  "type": "string",
23
23
  "default": "'设置脚本'"
24
24
  },
25
+ {
26
+ "name": "icon",
27
+ "description": "按钮图标",
28
+ "type": "string"
29
+ },
25
30
  {
26
31
  "name": "title",
27
32
  "description": "弹窗标题",
@@ -105,6 +110,11 @@ export default {
105
110
  "type": "string",
106
111
  "description": "按钮文字"
107
112
  },
113
+ {
114
+ "name": "icon",
115
+ "type": "string",
116
+ "description": "按钮图标"
117
+ },
108
118
  {
109
119
  "name": "title",
110
120
  "type": "string",
@@ -128,7 +128,7 @@ export default {
128
128
  },
129
129
  {
130
130
  "name": "change",
131
- "description": "当选中值发生变化时触发",
131
+ "description": "当选中值发生变化时触发,参数为包含 value 和 data 的对象,或 undefined",
132
132
  "type": "union"
133
133
  }
134
134
  ],
@@ -1,260 +1,272 @@
1
- export default {
2
- "props": [
3
- {
4
- "name": "modelValue",
5
- "description": "输入值【作为表单的编辑表格使用】",
6
- "type": "Record<string, any>[]",
7
- "default": "() => []"
8
- },
9
- {
10
- "name": "columns",
11
- "description": "表格列配置",
12
- "type": "SchemaConfig[]",
13
- "default": "() => []"
14
- },
15
- {
16
- "name": "searchList",
17
- "description": "固定过滤条件",
18
- "type": "Record<string, any>[]",
19
- "default": "() => []"
20
- },
21
- {
22
- "name": "isTree",
23
- "description": "是否是树形结构",
24
- "type": "boolean",
25
- "default": "false"
26
- },
27
- {
28
- "name": "defaultExpandAll",
29
- "description": "是否默认全部展开(仅 isTree 为 true 且非懒加载时生效)",
30
- "type": "boolean",
31
- "default": "false"
32
- },
33
- {
34
- "name": "parentKey",
35
- "description": "父级字段名(isTree 为 true 时用于将扁平数据转换成树形数据)",
36
- "type": "string",
37
- "default": "''"
38
- },
39
- {
40
- "name": "isShowNumber",
41
- "description": "是否显示序号",
42
- "type": "boolean",
43
- "default": "true"
44
- },
45
- {
46
- "name": "isMultiple",
47
- "description": "是否开启多选",
48
- "type": "boolean",
49
- "default": "false"
50
- },
51
- {
52
- "name": "selectStateKey",
53
- "description": "选状态字段名",
54
- "type": "string",
55
- "default": "''"
56
- },
57
- {
58
- "name": "multipleDisabled",
59
- "description": "多选禁用判断",
60
- "type": "(record: Record<string, any>) => boolean",
61
- "default": "null"
62
- },
63
- {
64
- "name": "isPage",
65
- "description": "是否分页",
66
- "type": "boolean",
67
- "default": "false"
68
- },
69
- {
70
- "name": "pageSizes",
71
- "description": "每页显示个数选择器的选项设置",
72
- "type": "array"
73
- },
74
- {
75
- "name": "pageSize",
76
- "description": "当前显示页数",
77
- "type": "number",
78
- "default": "100"
79
- },
80
- {
81
- "name": "subColumns",
82
- "description": "子表列配置",
83
- "type": "any[]",
84
- "default": "() => []"
85
- },
86
- {
87
- "name": "isSubShowNumber",
88
- "description": "是否显示子表序号",
89
- "type": "boolean",
90
- "default": "true"
91
- },
92
- {
93
- "name": "subActions",
94
- "description": "子表行内操作按钮配置",
95
- "type": "ButtonCompType[]",
96
- "default": "() => []"
97
- },
98
- {
99
- "name": "loadChildren",
100
- "description": "懒加载子节点数据",
101
- "type": "(record: Record<string, any>) => Promise<any[]>",
102
- "default": "null"
103
- },
104
- {
105
- "name": "rowKey",
106
- "description": "行主键",
107
- "type": "string",
108
- "default": "undefined"
109
- },
110
- {
111
- "name": "sort",
112
- "description": "排序字段",
113
- "type": "string"
114
- },
115
- {
116
- "name": "buttons",
117
- "description": "面板按钮",
118
- "type": "ButtonCompType[]",
119
- "default": "() => []"
120
- },
121
- {
122
- "name": "batchButtons",
123
- "description": "批量操作按钮配置(选中记录后显示)",
124
- "type": "ButtonCompType[]",
125
- "default": "() => []"
126
- },
127
- {
128
- "name": "actions",
129
- "description": "行内操作按钮配置",
130
- "type": "ButtonCompType[]",
131
- "default": "() => []"
132
- },
133
- {
134
- "name": "actionsMaxCount",
135
- "description": "操作列最大显示按钮数量",
136
- "type": "number",
137
- "default": "3"
138
- },
139
- {
140
- "name": "actionsLabel",
141
- "description": "操作列标题",
142
- "type": "string",
143
- "default": "'操作'"
144
- },
145
- {
146
- "name": "actionFilter",
147
- "description": "行内操作按钮过滤方法",
148
- "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",
149
- "default": "null"
150
- },
151
- {
152
- "name": "loadData",
153
- "description": "加载数据方法",
154
- "type": "(params: Record<string, any>) => Promise<any>"
155
- },
156
- {
157
- "name": "immediate",
158
- "description": "是否立即执行加载数据",
159
- "type": "boolean",
160
- "default": "true"
161
- },
162
- {
163
- "name": "noPadding",
164
- "description": "不要边距",
165
- "type": "boolean"
166
- },
167
- {
168
- "name": "highlightMode",
169
- "description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
170
- "type": "'cross' | 'row' | 'column' | 'cell'",
171
- "default": "'row'"
172
- },
173
- {
174
- "name": "showFilterButton",
175
- "description": "是否显示筛选按钮(包含右侧固定筛选面板)",
176
- "type": "boolean",
177
- "default": "true"
178
- },
179
- {
180
- "name": "showOrderButton",
181
- "description": "是否显示排序按钮",
182
- "type": "boolean",
183
- "default": "true"
184
- },
185
- {
186
- "name": "showColumnButton",
187
- "description": "是否显示列管理按钮",
188
- "type": "boolean",
189
- "default": "true"
190
- },
191
- {
192
- "name": "showRefreshButton",
193
- "description": "是否显示刷新按钮",
194
- "type": "boolean",
195
- "default": "true"
196
- },
197
- {
198
- "name": "showFullscreenButton",
199
- "description": "是否显示全屏按钮",
200
- "type": "boolean",
201
- "default": "true"
202
- },
203
- {
204
- "name": "renderVNode",
205
- "description": "自定义渲染 VNode",
206
- "type": "(params: Record<string, any>) => import('vue').VNode"
207
- },
208
- {
209
- "name": "renderVNodeClass",
210
- "description": "自定义渲染 VNode 类名",
211
- "type": "string"
212
- }
213
- ],
214
- "events": [
215
- {
216
- "name": "select",
217
- "description": "",
218
- "type": "unknown"
219
- },
220
- {
221
- "name": "ready",
222
- "description": "",
223
- "type": "unknown"
224
- }
225
- ],
226
- "slots": [],
227
- "methods": [
228
- {
229
- "name": "refreshData",
230
- "description": "",
231
- "type": "async () => Promise<any>"
232
- },
233
- {
234
- "name": "resetData",
235
- "description": "",
236
- "type": "async () => Promise<any>"
237
- },
238
- {
239
- "name": "getSelection",
240
- "description": "",
241
- "type": "() => void"
242
- },
243
- {
244
- "name": "setSelection",
245
- "description": "",
246
- "type": "() => void"
247
- },
248
- {
249
- "name": "clearSelection",
250
- "description": "",
251
- "type": "() => void"
252
- },
253
- {
254
- "name": "getTableRef",
255
- "description": "",
256
- "type": "() => void"
257
- }
258
- ],
259
- "types": []
260
- }
1
+ export default {
2
+ "props": [
3
+ {
4
+ "name": "modelValue",
5
+ "description": "输入值【作为表单的编辑表格使用】",
6
+ "type": "Record<string, any>[]",
7
+ "default": "() => []"
8
+ },
9
+ {
10
+ "name": "columns",
11
+ "description": "表格列配置",
12
+ "type": "SchemaConfig[]",
13
+ "default": "() => []"
14
+ },
15
+ {
16
+ "name": "columnFilter",
17
+ "description": "列过滤(用于隐藏列)",
18
+ "type": "string[]",
19
+ "default": "() => []"
20
+ },
21
+ {
22
+ "name": "searchList",
23
+ "description": "固定过滤条件",
24
+ "type": "Record<string, any>[]",
25
+ "default": "() => []"
26
+ },
27
+ {
28
+ "name": "isTree",
29
+ "description": "是否是树形结构",
30
+ "type": "boolean",
31
+ "default": "false"
32
+ },
33
+ {
34
+ "name": "defaultExpandAll",
35
+ "description": "是否默认全部展开(仅 isTree 为 true 且非懒加载时生效)",
36
+ "type": "boolean",
37
+ "default": "false"
38
+ },
39
+ {
40
+ "name": "parentKey",
41
+ "description": "父级字段名(isTree 为 true 时用于将扁平数据转换成树形数据)",
42
+ "type": "string",
43
+ "default": "''"
44
+ },
45
+ {
46
+ "name": "isShowNumber",
47
+ "description": "是否显示序号",
48
+ "type": "boolean",
49
+ "default": "true"
50
+ },
51
+ {
52
+ "name": "isMultiple",
53
+ "description": "是否开启多选",
54
+ "type": "boolean",
55
+ "default": "false"
56
+ },
57
+ {
58
+ "name": "selectStateKey",
59
+ "description": "选状态字段名",
60
+ "type": "string",
61
+ "default": "''"
62
+ },
63
+ {
64
+ "name": "multipleDisabled",
65
+ "description": "多选禁用判断",
66
+ "type": "(record: Record<string, any>) => boolean",
67
+ "default": "null"
68
+ },
69
+ {
70
+ "name": "isPage",
71
+ "description": "是否分页",
72
+ "type": "boolean",
73
+ "default": "false"
74
+ },
75
+ {
76
+ "name": "pageSizes",
77
+ "description": "每页显示个数选择器的选项设置",
78
+ "type": "array"
79
+ },
80
+ {
81
+ "name": "pageSize",
82
+ "description": "当前显示页数",
83
+ "type": "number",
84
+ "default": "100"
85
+ },
86
+ {
87
+ "name": "subColumns",
88
+ "description": "子表列配置",
89
+ "type": "any[]",
90
+ "default": "() => []"
91
+ },
92
+ {
93
+ "name": "isSubShowNumber",
94
+ "description": "是否显示子表序号",
95
+ "type": "boolean",
96
+ "default": "true"
97
+ },
98
+ {
99
+ "name": "subActions",
100
+ "description": "子表行内操作按钮配置",
101
+ "type": "ButtonCompType[]",
102
+ "default": "() => []"
103
+ },
104
+ {
105
+ "name": "loadChildren",
106
+ "description": "懒加载子节点数据",
107
+ "type": "(record: Record<string, any>) => Promise<any[]>",
108
+ "default": "null"
109
+ },
110
+ {
111
+ "name": "rowKey",
112
+ "description": "行主键",
113
+ "type": "string",
114
+ "default": "undefined"
115
+ },
116
+ {
117
+ "name": "sort",
118
+ "description": "排序字段",
119
+ "type": "string"
120
+ },
121
+ {
122
+ "name": "buttons",
123
+ "description": "面板按钮",
124
+ "type": "ButtonCompType[]",
125
+ "default": "() => []"
126
+ },
127
+ {
128
+ "name": "batchButtons",
129
+ "description": "批量操作按钮配置(选中记录后显示)",
130
+ "type": "ButtonCompType[]",
131
+ "default": "() => []"
132
+ },
133
+ {
134
+ "name": "actions",
135
+ "description": "行内操作按钮配置",
136
+ "type": "ButtonCompType[]",
137
+ "default": "() => []"
138
+ },
139
+ {
140
+ "name": "actionsMaxCount",
141
+ "description": "操作列最大显示按钮数量",
142
+ "type": "number",
143
+ "default": "3"
144
+ },
145
+ {
146
+ "name": "actionsLabel",
147
+ "description": "操作列标题",
148
+ "type": "string",
149
+ "default": "'操作'"
150
+ },
151
+ {
152
+ "name": "actionFilter",
153
+ "description": "行内操作按钮过滤方法",
154
+ "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",
155
+ "default": "null"
156
+ },
157
+ {
158
+ "name": "loadData",
159
+ "description": "加载数据方法",
160
+ "type": "(params: Record<string, any>) => Promise<any>"
161
+ },
162
+ {
163
+ "name": "immediate",
164
+ "description": "是否立即执行加载数据",
165
+ "type": "boolean",
166
+ "default": "true"
167
+ },
168
+ {
169
+ "name": "noPadding",
170
+ "description": "不要边距",
171
+ "type": "boolean"
172
+ },
173
+ {
174
+ "name": "highlightMode",
175
+ "description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
176
+ "type": "'cross' | 'row' | 'column' | 'cell'",
177
+ "default": "'row'"
178
+ },
179
+ {
180
+ "name": "showFilterButton",
181
+ "description": "是否显示筛选按钮(包含右侧固定筛选面板)",
182
+ "type": "boolean",
183
+ "default": "true"
184
+ },
185
+ {
186
+ "name": "showOrderButton",
187
+ "description": "是否显示排序按钮",
188
+ "type": "boolean",
189
+ "default": "true"
190
+ },
191
+ {
192
+ "name": "showColumnButton",
193
+ "description": "是否显示列管理按钮",
194
+ "type": "boolean",
195
+ "default": "true"
196
+ },
197
+ {
198
+ "name": "showRefreshButton",
199
+ "description": "是否显示刷新按钮",
200
+ "type": "boolean",
201
+ "default": "true"
202
+ },
203
+ {
204
+ "name": "showFullscreenButton",
205
+ "description": "是否显示全屏按钮",
206
+ "type": "boolean",
207
+ "default": "true"
208
+ },
209
+ {
210
+ "name": "renderVNode",
211
+ "description": "自定义渲染 VNode",
212
+ "type": "(params: Record<string, any>) => import('vue').VNode"
213
+ },
214
+ {
215
+ "name": "renderVNodeClass",
216
+ "description": "自定义渲染 VNode 类名",
217
+ "type": "string"
218
+ },
219
+ {
220
+ "name": "rowDrag",
221
+ "description": "是否支持行拖动排序",
222
+ "type": "boolean",
223
+ "default": "false"
224
+ }
225
+ ],
226
+ "events": [
227
+ {
228
+ "name": "select",
229
+ "description": "",
230
+ "type": "unknown"
231
+ },
232
+ {
233
+ "name": "ready",
234
+ "description": "",
235
+ "type": "unknown"
236
+ }
237
+ ],
238
+ "slots": [],
239
+ "methods": [
240
+ {
241
+ "name": "refreshData",
242
+ "description": "",
243
+ "type": "async () => Promise<any>"
244
+ },
245
+ {
246
+ "name": "resetData",
247
+ "description": "",
248
+ "type": "async () => Promise<any>"
249
+ },
250
+ {
251
+ "name": "getSelection",
252
+ "description": "",
253
+ "type": "() => void"
254
+ },
255
+ {
256
+ "name": "setSelection",
257
+ "description": "",
258
+ "type": "() => void"
259
+ },
260
+ {
261
+ "name": "clearSelection",
262
+ "description": "",
263
+ "type": "() => void"
264
+ },
265
+ {
266
+ "name": "getTableRef",
267
+ "description": "",
268
+ "type": "() => void"
269
+ }
270
+ ],
271
+ "types": []
272
+ }