@a2simcode/ui 0.0.285 → 0.0.287
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-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 +4100 -4065
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/components/meta/table-panel.ts +337 -326
- package/docs/components/table-panel.md +15 -0
- package/docs/examples/table-panel/remote-selection.vue +159 -0
- package/package.json +1 -1
|
@@ -1,326 +1,337 @@
|
|
|
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": "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": "pageSizes",
|
|
83
|
-
"description": "每页显示个数选择器的选项设置",
|
|
84
|
-
"type": "array"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"name": "pageSize",
|
|
88
|
-
"description": "当前显示页数",
|
|
89
|
-
"type": "number",
|
|
90
|
-
"default": "100"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "subColumns",
|
|
94
|
-
"description": "子表列配置",
|
|
95
|
-
"type": "any[]",
|
|
96
|
-
"default": "() => []"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "isSubShowNumber",
|
|
100
|
-
"description": "是否显示子表序号",
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"default": "true"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "subActions",
|
|
106
|
-
"description": "子表行内操作按钮配置",
|
|
107
|
-
"type": "ButtonCompType[]",
|
|
108
|
-
"default": "() => []"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "loadChildren",
|
|
112
|
-
"description": "懒加载子节点数据",
|
|
113
|
-
"type": "(record: Record<string, any>) => Promise<any[]>",
|
|
114
|
-
"default": "null"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "rowKey",
|
|
118
|
-
"description": "行主键",
|
|
119
|
-
"type": "string",
|
|
120
|
-
"default": "undefined"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "sort",
|
|
124
|
-
"description": "排序字段",
|
|
125
|
-
"type": "string"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "buttons",
|
|
129
|
-
"description": "面板按钮",
|
|
130
|
-
"type": "ButtonCompType[]",
|
|
131
|
-
"default": "() => []"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "batchButtons",
|
|
135
|
-
"description": "批量操作按钮配置(选中记录后显示)",
|
|
136
|
-
"type": "ButtonCompType[]",
|
|
137
|
-
"default": "() => []"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"name": "actions",
|
|
141
|
-
"description": "行内操作按钮配置",
|
|
142
|
-
"type": "ButtonCompType[]",
|
|
143
|
-
"default": "() => []"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"name": "actionsMaxCount",
|
|
147
|
-
"description": "操作列最大显示按钮数量",
|
|
148
|
-
"type": "number",
|
|
149
|
-
"default": "3"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"name": "actionsLabel",
|
|
153
|
-
"description": "操作列标题",
|
|
154
|
-
"type": "string",
|
|
155
|
-
"default": "'操作'"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"name": "actionFilter",
|
|
159
|
-
"description": "行内操作按钮过滤方法",
|
|
160
|
-
"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",
|
|
161
|
-
"default": "null"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"name": "loadData",
|
|
165
|
-
"description": "加载数据方法",
|
|
166
|
-
"type": "(params: Record<string, any>) => Promise<any>"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "
|
|
170
|
-
"description": "
|
|
171
|
-
"type": "boolean",
|
|
172
|
-
"default": "
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "
|
|
176
|
-
"description": "
|
|
177
|
-
"type": "boolean"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"name": "
|
|
187
|
-
"description": "
|
|
188
|
-
"type": "
|
|
189
|
-
"default": "
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"name": "
|
|
193
|
-
"description": "
|
|
194
|
-
"type": "boolean",
|
|
195
|
-
"default": "true"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"name": "
|
|
199
|
-
"description": "
|
|
200
|
-
"type": "boolean",
|
|
201
|
-
"default": "true"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"name": "
|
|
205
|
-
"description": "
|
|
206
|
-
"type": "boolean",
|
|
207
|
-
"default": "true"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"name": "
|
|
211
|
-
"description": "
|
|
212
|
-
"type": "boolean",
|
|
213
|
-
"default": "true"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"name": "
|
|
217
|
-
"description": "
|
|
218
|
-
"type": "
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"name": "
|
|
233
|
-
"description": "
|
|
234
|
-
"type": "
|
|
235
|
-
"default": "
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "
|
|
239
|
-
"description": "
|
|
240
|
-
"type": "
|
|
241
|
-
"default": "
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "
|
|
245
|
-
"description": "
|
|
246
|
-
"type": "string",
|
|
247
|
-
"default": "
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"name": "
|
|
251
|
-
"description": "
|
|
252
|
-
"type": "string",
|
|
253
|
-
"default": "''"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "
|
|
257
|
-
"description": "
|
|
258
|
-
"type": "
|
|
259
|
-
"default": "
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"name": "
|
|
263
|
-
"description": "
|
|
264
|
-
"type": "
|
|
265
|
-
"default": "
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"name": "
|
|
269
|
-
"description": "
|
|
270
|
-
"type": "number",
|
|
271
|
-
"default": "
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"name": "
|
|
275
|
-
"description": "
|
|
276
|
-
"type": "
|
|
277
|
-
"default": "
|
|
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
|
-
|
|
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": "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": "pageSizes",
|
|
83
|
+
"description": "每页显示个数选择器的选项设置",
|
|
84
|
+
"type": "array"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "pageSize",
|
|
88
|
+
"description": "当前显示页数",
|
|
89
|
+
"type": "number",
|
|
90
|
+
"default": "100"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "subColumns",
|
|
94
|
+
"description": "子表列配置",
|
|
95
|
+
"type": "any[]",
|
|
96
|
+
"default": "() => []"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "isSubShowNumber",
|
|
100
|
+
"description": "是否显示子表序号",
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"default": "true"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "subActions",
|
|
106
|
+
"description": "子表行内操作按钮配置",
|
|
107
|
+
"type": "ButtonCompType[]",
|
|
108
|
+
"default": "() => []"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "loadChildren",
|
|
112
|
+
"description": "懒加载子节点数据",
|
|
113
|
+
"type": "(record: Record<string, any>) => Promise<any[]>",
|
|
114
|
+
"default": "null"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "rowKey",
|
|
118
|
+
"description": "行主键",
|
|
119
|
+
"type": "string",
|
|
120
|
+
"default": "undefined"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "sort",
|
|
124
|
+
"description": "排序字段",
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "buttons",
|
|
129
|
+
"description": "面板按钮",
|
|
130
|
+
"type": "ButtonCompType[]",
|
|
131
|
+
"default": "() => []"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "batchButtons",
|
|
135
|
+
"description": "批量操作按钮配置(选中记录后显示)",
|
|
136
|
+
"type": "ButtonCompType[]",
|
|
137
|
+
"default": "() => []"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "actions",
|
|
141
|
+
"description": "行内操作按钮配置",
|
|
142
|
+
"type": "ButtonCompType[]",
|
|
143
|
+
"default": "() => []"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "actionsMaxCount",
|
|
147
|
+
"description": "操作列最大显示按钮数量",
|
|
148
|
+
"type": "number",
|
|
149
|
+
"default": "3"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "actionsLabel",
|
|
153
|
+
"description": "操作列标题",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"default": "'操作'"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "actionFilter",
|
|
159
|
+
"description": "行内操作按钮过滤方法",
|
|
160
|
+
"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",
|
|
161
|
+
"default": "null"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "loadData",
|
|
165
|
+
"description": "加载数据方法",
|
|
166
|
+
"type": "(params: Record<string, any>) => Promise<any>"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "remoteSelection",
|
|
170
|
+
"description": "选中数据是否远程拉取,开启后「仅显示选中」会按选中 ID 调用 loadData(参数含 ids 与 field)从接口拉取完整选中数据",
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": "false"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "immediate",
|
|
176
|
+
"description": "是否立即执行加载数据",
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"default": "true"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "noPadding",
|
|
182
|
+
"description": "不要边距",
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "highlightMode",
|
|
187
|
+
"description": "高亮模式 cross 十字 row 行 column 列 cell 单元格",
|
|
188
|
+
"type": "'cross' | 'row' | 'column' | 'cell'",
|
|
189
|
+
"default": "'row'"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "showFilterButton",
|
|
193
|
+
"description": "是否显示筛选按钮(包含右侧固定筛选面板)",
|
|
194
|
+
"type": "boolean",
|
|
195
|
+
"default": "true"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "showOrderButton",
|
|
199
|
+
"description": "是否显示排序按钮",
|
|
200
|
+
"type": "boolean",
|
|
201
|
+
"default": "true"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "showColumnButton",
|
|
205
|
+
"description": "是否显示列管理按钮",
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"default": "true"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "showRefreshButton",
|
|
211
|
+
"description": "是否显示刷新按钮",
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"default": "true"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "showFullscreenButton",
|
|
217
|
+
"description": "是否显示全屏按钮",
|
|
218
|
+
"type": "boolean",
|
|
219
|
+
"default": "true"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "renderVNode",
|
|
223
|
+
"description": "自定义渲染 VNode",
|
|
224
|
+
"type": "(params: Record<string, any>) => import('vue').VNode"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "renderVNodeClass",
|
|
228
|
+
"description": "自定义渲染 VNode 类名",
|
|
229
|
+
"type": "string"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "rowDrag",
|
|
233
|
+
"description": "是否支持行拖动排序",
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"default": "false"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "cardLabelKey",
|
|
239
|
+
"description": "卡片视图标题字段名",
|
|
240
|
+
"type": "string",
|
|
241
|
+
"default": "'f_Name'"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "cardLoadSrc",
|
|
245
|
+
"description": "卡片视图图片加载方法",
|
|
246
|
+
"type": "(item: Record<string, any>) => string",
|
|
247
|
+
"default": "undefined"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "cardFallback",
|
|
251
|
+
"description": "卡片视图图片加载失败兜底图",
|
|
252
|
+
"type": "string",
|
|
253
|
+
"default": "''"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "cardBackgroundColor",
|
|
257
|
+
"description": "卡片视图背景色",
|
|
258
|
+
"type": "string",
|
|
259
|
+
"default": "''"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "cardShowBigEditButton",
|
|
263
|
+
"description": "卡片视图是否展示大编辑按钮(需要 buttons 中包含 id 为 edit 的按钮)",
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"default": "false"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "cardWidth",
|
|
269
|
+
"description": "卡片视图卡片宽度",
|
|
270
|
+
"type": "number",
|
|
271
|
+
"default": "258"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "cardHeight",
|
|
275
|
+
"description": "卡片视图卡片高度",
|
|
276
|
+
"type": "number",
|
|
277
|
+
"default": "184"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "cardImageFit",
|
|
281
|
+
"description": "卡片视图图片填充方式",
|
|
282
|
+
"type": "'fill' | 'contain' | 'cover' | 'none' | 'scale-down'",
|
|
283
|
+
"default": "'fill'"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"events": [
|
|
287
|
+
{
|
|
288
|
+
"name": "select",
|
|
289
|
+
"description": "",
|
|
290
|
+
"type": "unknown"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "ready",
|
|
294
|
+
"description": "",
|
|
295
|
+
"type": "unknown"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"slots": [],
|
|
299
|
+
"methods": [
|
|
300
|
+
{
|
|
301
|
+
"name": "refreshData",
|
|
302
|
+
"description": "",
|
|
303
|
+
"type": "async () => Promise<any>"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "resetData",
|
|
307
|
+
"description": "",
|
|
308
|
+
"type": "async () => Promise<any>"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "getSelection",
|
|
312
|
+
"description": "",
|
|
313
|
+
"type": "() => void"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "setSelection",
|
|
317
|
+
"description": "",
|
|
318
|
+
"type": "() => void"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "setSelectionById",
|
|
322
|
+
"description": "",
|
|
323
|
+
"type": "() => void"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "clearSelection",
|
|
327
|
+
"description": "",
|
|
328
|
+
"type": "() => void"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "getTableRef",
|
|
332
|
+
"description": "",
|
|
333
|
+
"type": "() => void"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"types": []
|
|
337
|
+
}
|