@next-bricks/advanced 0.51.6 → 0.52.0
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/bricks.json +13 -13
- package/dist/chunks/{1576.de87244a.js → 1576.09ecd8ad.js} +3 -3
- package/dist/chunks/{1576.de87244a.js.map → 1576.09ecd8ad.js.map} +1 -1
- package/dist/chunks/6773.48750573.js +2 -0
- package/dist/chunks/6773.48750573.js.map +1 -0
- package/dist/chunks/7615.b7566a46.js +2 -0
- package/dist/chunks/7615.b7566a46.js.map +1 -0
- package/dist/chunks/8382.d5dbfa50.js +2 -0
- package/dist/chunks/8382.d5dbfa50.js.map +1 -0
- package/dist/chunks/capture-snapshot.48021ccd.js +2 -0
- package/dist/chunks/capture-snapshot.48021ccd.js.map +1 -0
- package/dist/chunks/eo-next-table.7f8c557a.js.map +1 -1
- package/dist/chunks/main.10a8ab8a.js +2 -0
- package/dist/chunks/main.10a8ab8a.js.map +1 -0
- package/dist/examples.json +7 -7
- package/dist/index.0b14a7d1.js +2 -0
- package/dist/index.0b14a7d1.js.map +1 -0
- package/dist/manifest.json +376 -376
- package/dist/types.json +20 -20
- package/dist-types/next-table/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/6773.e9348322.js +0 -2
- package/dist/chunks/6773.e9348322.js.map +0 -1
- package/dist/chunks/8382.ade8275e.js +0 -2
- package/dist/chunks/8382.ade8275e.js.map +0 -1
- package/dist/chunks/capture-snapshot.3046c520.js +0 -2
- package/dist/chunks/capture-snapshot.3046c520.js.map +0 -1
- package/dist/chunks/main.06ea33e1.js +0 -2
- package/dist/chunks/main.06ea33e1.js.map +0 -1
- package/dist/index.2bb5aa4e.js +0 -2
- package/dist/index.2bb5aa4e.js.map +0 -1
- /package/dist/chunks/{1576.de87244a.js.LICENSE.txt → 1576.09ecd8ad.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,354 +4,129 @@
|
|
|
4
4
|
"name": "advanced",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "eo-
|
|
7
|
+
"name": "eo-cascader",
|
|
8
8
|
"alias": [
|
|
9
|
-
"advanced.general-
|
|
9
|
+
"advanced.general-cascader"
|
|
10
10
|
],
|
|
11
11
|
"properties": [
|
|
12
12
|
{
|
|
13
|
-
"name": "
|
|
14
|
-
"description": "
|
|
15
|
-
"default": "true"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "rowSelection",
|
|
19
|
-
"description": "表格行是否可选择,具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)",
|
|
20
|
-
"attribute": false,
|
|
21
|
-
"type": "false | TableRowSelection<any>"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "rowKey",
|
|
25
|
-
"description": "指定每一行的 key,不指定则默认为索引 index。强烈建议设置该属性,否则在某些情况下可能行为不如预期。",
|
|
13
|
+
"name": "name",
|
|
14
|
+
"description": "表单字段名",
|
|
26
15
|
"type": "string"
|
|
27
16
|
},
|
|
28
17
|
{
|
|
29
|
-
"name": "
|
|
30
|
-
"description": "
|
|
31
|
-
"
|
|
32
|
-
"type": "Array<string | number>"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "showSelectInfo",
|
|
36
|
-
"description": "是否显示已选择信息和清除按钮。仅在设置了`rowSelection`时有效。默认不显示",
|
|
37
|
-
"default": "false"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "filters",
|
|
41
|
-
"description": "表头过滤的过滤项,key 为 column 的 dataIndex,value 为过滤值集合。",
|
|
42
|
-
"attribute": false,
|
|
43
|
-
"type": "Record<string, string[]>"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "configProps",
|
|
47
|
-
"description": "ant-design 的 Table 相关配置项,具体查阅:[Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
|
|
48
|
-
"attribute": false,
|
|
49
|
-
"type": "any"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "sort",
|
|
53
|
-
"description": "被排序列的 dataIndex。通常来自于 url 参数,可以设置成 ${QUERY.sort}。",
|
|
54
|
-
"type": "string | null"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "order",
|
|
58
|
-
"description": "升序/降序,可以设置成 ${QUERY.order}。",
|
|
59
|
-
"attribute": false,
|
|
60
|
-
"type": "string | number | null"
|
|
18
|
+
"name": "label",
|
|
19
|
+
"description": "表单字段标签",
|
|
20
|
+
"type": "string"
|
|
61
21
|
},
|
|
62
22
|
{
|
|
63
|
-
"name": "
|
|
64
|
-
"description": "
|
|
65
|
-
"
|
|
66
|
-
"type": "RowDisabledProps | RowDisabledProps[]"
|
|
23
|
+
"name": "required",
|
|
24
|
+
"description": "是否为必填项",
|
|
25
|
+
"type": "boolean"
|
|
67
26
|
},
|
|
68
27
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"description": "
|
|
28
|
+
"name": "options",
|
|
29
|
+
"description": "可选项数据源",
|
|
71
30
|
"attribute": false,
|
|
72
|
-
"type": "
|
|
31
|
+
"type": "AntdCascaderProps[\"options\"]"
|
|
73
32
|
},
|
|
74
33
|
{
|
|
75
|
-
"name": "
|
|
76
|
-
"description": "
|
|
77
|
-
"default": "{
|
|
34
|
+
"name": "fieldNames",
|
|
35
|
+
"description": "自定义字段名,指定 label、value、children 对应的字段",
|
|
36
|
+
"default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }",
|
|
78
37
|
"attribute": false,
|
|
79
|
-
"type": "
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "expandIconAsCell",
|
|
83
|
-
"description": "展开的图标是否为一个单元格,默认显示在第一列;设置为 false 的时候,可以通过`expandIconColumnIndex`属性设置展开的图标在哪一列",
|
|
84
|
-
"default": "true",
|
|
85
|
-
"attribute": false
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "expandIconColumnIndex",
|
|
89
|
-
"description": "展开的图标显示在哪一列,如果没有 rowSelection,默认显示在第一列,否则显示在选择框后面。当`expandIconAsCell`为 false 时,该属性生效。",
|
|
90
|
-
"type": "number"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "expandRowByClick",
|
|
94
|
-
"description": "通过点击行来展开子行",
|
|
95
|
-
"type": "boolean"
|
|
38
|
+
"type": "AntdCascaderProps[\"fieldNames\"]"
|
|
96
39
|
},
|
|
97
40
|
{
|
|
98
|
-
"name": "
|
|
99
|
-
"description": "
|
|
41
|
+
"name": "value",
|
|
42
|
+
"description": "当前选中的值",
|
|
100
43
|
"attribute": false,
|
|
101
|
-
"type": "
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"name": "stripEmptyExpandableChildren",
|
|
105
|
-
"description": "树形数据展示时是否需要去除空数组",
|
|
106
|
-
"default": "false",
|
|
107
|
-
"attribute": false
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "defaultExpandAllRows",
|
|
111
|
-
"description": "初始时,是否展开所有行",
|
|
112
|
-
"type": "boolean"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "ellipsisInfo",
|
|
116
|
-
"description": "是否显示省略信息",
|
|
117
|
-
"type": "boolean"
|
|
44
|
+
"type": "AntdCascaderProps[\"value\"]"
|
|
118
45
|
},
|
|
119
46
|
{
|
|
120
|
-
"name": "
|
|
121
|
-
"description": "
|
|
122
|
-
"
|
|
123
|
-
"type": "string[]"
|
|
47
|
+
"name": "placeholder",
|
|
48
|
+
"description": "输入框占位文本",
|
|
49
|
+
"type": "string"
|
|
124
50
|
},
|
|
125
51
|
{
|
|
126
|
-
"name": "
|
|
127
|
-
"description": "
|
|
52
|
+
"name": "multiple",
|
|
53
|
+
"description": "是否支持多选",
|
|
128
54
|
"type": "boolean"
|
|
129
55
|
},
|
|
130
56
|
{
|
|
131
|
-
"name": "
|
|
132
|
-
"description": "
|
|
57
|
+
"name": "disabled",
|
|
58
|
+
"description": "是否禁用",
|
|
133
59
|
"type": "boolean"
|
|
134
60
|
},
|
|
135
61
|
{
|
|
136
|
-
"name": "
|
|
137
|
-
"description": "
|
|
138
|
-
"default": "children",
|
|
139
|
-
"attribute": false
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "sortable",
|
|
143
|
-
"description": "是否支持排序。默认开启,当对应列的sorter设置成true时则可排序。sortable为false时则排序都不生效。",
|
|
62
|
+
"name": "allowClear",
|
|
63
|
+
"description": "是否支持清除",
|
|
144
64
|
"default": "true",
|
|
145
|
-
"attribute": false
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "frontSearch",
|
|
149
|
-
"description": "是否前端进行搜索,配合`presentational-bricks.brick-input`使用",
|
|
150
|
-
"type": "boolean"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"name": "frontSearchQuery",
|
|
154
|
-
"description": "前端搜索参数",
|
|
155
|
-
"default": "\"\""
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"name": "exactSearch",
|
|
159
|
-
"description": "是否精确搜索",
|
|
160
|
-
"type": "boolean"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"name": "frontSearchFilterKeys",
|
|
164
|
-
"description": "进行前端搜索的字段,支持嵌套的写法如[\"name\",\"value.a\"],不配置的时候默认为对所有 columns 的 dataIndex[]进行前端搜索",
|
|
165
|
-
"attribute": false,
|
|
166
|
-
"type": "string[]"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "page",
|
|
170
|
-
"description": "页码。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 page;前台搜索的时候,一般配置成 \"${query.page=1|number}\"",
|
|
171
|
-
"type": "number"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "pageSize",
|
|
175
|
-
"description": "页码条数。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 pageSize/page_size;前台搜索的时候,一般配置成 \"${query.pageSize=10|number}\"",
|
|
176
|
-
"type": "number"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "scrollConfigs",
|
|
180
|
-
"description": "表格是否可滚动,也可以指定滚动区域的宽、高,配置项。详见 [scroll](https://ant.design/components/table-cn/#scroll)",
|
|
181
|
-
"default": "{ x: true }",
|
|
182
|
-
"attribute": false,
|
|
183
|
-
"type": "TableProps<unknown>[\"scroll\"]"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"name": "qField",
|
|
187
|
-
"description": "把过滤条件更新到 url 时的字段名",
|
|
188
|
-
"default": "\"q\""
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"name": "tableDraggable",
|
|
192
|
-
"description": "表格行是否可拖拽,注意,树形数据的表格不支持该功能",
|
|
193
65
|
"type": "boolean"
|
|
194
66
|
},
|
|
195
67
|
{
|
|
196
|
-
"name": "
|
|
197
|
-
"description": "
|
|
198
|
-
"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"name": "storeCheckedByUrl",
|
|
202
|
-
"description": "翻页时是否记住之前选中的项。注意,选中项的rowKey将保存在url中,如果不设置rowKey,该设置不生效。如果选择太多可能会造成url过长,请谨慎使用",
|
|
68
|
+
"name": "showSearch",
|
|
69
|
+
"description": "是否支持搜索,开启后可通过输入关键字过滤选项",
|
|
70
|
+
"default": "true",
|
|
203
71
|
"type": "boolean"
|
|
204
72
|
},
|
|
205
73
|
{
|
|
206
|
-
"name": "
|
|
207
|
-
"description": "
|
|
208
|
-
"default": "[]",
|
|
74
|
+
"name": "suffixIcon",
|
|
75
|
+
"description": "自定义下拉箭头图标",
|
|
209
76
|
"attribute": false,
|
|
210
|
-
"type": "
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "autoSelectParentWhenAllChildrenSelected",
|
|
214
|
-
"description": "当所有子节点选中时,自动选中父节点",
|
|
215
|
-
"type": "boolean"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "thTransparent",
|
|
219
|
-
"description": "表格表头是否透明",
|
|
220
|
-
"type": "boolean"
|
|
77
|
+
"type": "GeneralIconProps"
|
|
221
78
|
},
|
|
222
79
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"description": "
|
|
225
|
-
"default": "
|
|
80
|
+
"name": "expandTrigger",
|
|
81
|
+
"description": "次级菜单的展开方式,可选 click 或 hover",
|
|
82
|
+
"default": "\"click\"",
|
|
83
|
+
"type": "AntdCascaderProps[\"expandTrigger\"]"
|
|
226
84
|
},
|
|
227
85
|
{
|
|
228
|
-
"name": "
|
|
229
|
-
"description": "
|
|
230
|
-
"
|
|
231
|
-
"type": "
|
|
86
|
+
"name": "popupPlacement",
|
|
87
|
+
"description": "浮层预设位置,可选 bottomLeft、bottomRight、topLeft、topRight",
|
|
88
|
+
"default": "\"bottomLeft\"",
|
|
89
|
+
"type": "AntdCascaderProps[\"placement\"]"
|
|
232
90
|
},
|
|
233
91
|
{
|
|
234
92
|
"name": "size",
|
|
235
|
-
"description": "
|
|
236
|
-
"type": "
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "type",
|
|
240
|
-
"description": "选框类型(单选/多选)",
|
|
241
|
-
"attribute": false,
|
|
242
|
-
"type": "RowSelectionType"
|
|
93
|
+
"description": "输入框大小,可选 large、middle、small",
|
|
94
|
+
"type": "AntdCascaderProps[\"size\"]"
|
|
243
95
|
},
|
|
244
96
|
{
|
|
245
|
-
"name": "
|
|
246
|
-
"description": "
|
|
247
|
-
"default": "
|
|
97
|
+
"name": "limit",
|
|
98
|
+
"description": "搜索结果的最大条数,0 表示不限制",
|
|
99
|
+
"default": "50",
|
|
100
|
+
"type": "number"
|
|
248
101
|
},
|
|
249
102
|
{
|
|
250
|
-
"name": "
|
|
251
|
-
"description": "
|
|
252
|
-
"
|
|
103
|
+
"name": "maxTagCount",
|
|
104
|
+
"description": "多选模式下最多显示的 tag 数量,设为 responsive 时会自适应宽度",
|
|
105
|
+
"attribute": false,
|
|
106
|
+
"type": "number | \"responsive\""
|
|
253
107
|
},
|
|
254
108
|
{
|
|
255
|
-
"name": "
|
|
256
|
-
"description": "
|
|
257
|
-
"default": "[]",
|
|
109
|
+
"name": "cascaderStyle",
|
|
110
|
+
"description": "级联选择器的内联样式",
|
|
258
111
|
"attribute": false,
|
|
259
|
-
"type": "
|
|
112
|
+
"type": "CSSProperties"
|
|
260
113
|
}
|
|
261
114
|
],
|
|
262
115
|
"events": [
|
|
263
116
|
{
|
|
264
|
-
"name": "
|
|
265
|
-
"description": "
|
|
266
|
-
"detail": {
|
|
267
|
-
"description": "{ page: 当前页码, pageSize: 每页条数 }",
|
|
268
|
-
"type": "Record<string, number>"
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"name": "filter.update",
|
|
273
|
-
"description": "每页条数变化 ,pagePath 可在 fields.page 中设置,pageSizePath 可在 fields.pageSize 中设置,默认为 pageSize",
|
|
274
|
-
"detail": {
|
|
275
|
-
"description": "{ page: 当前页码, pageSize: 每页条数 }",
|
|
276
|
-
"type": "Record<string, number>"
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"name": "select.update",
|
|
281
|
-
"description": "勾选框变化,detail 中为所选的行数据",
|
|
282
|
-
"detail": {
|
|
283
|
-
"description": "选中的行数据数组",
|
|
284
|
-
"type": "Record<string, any>[]"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"name": "select.row.keys.update",
|
|
289
|
-
"description": "勾选框变化,detail 中为所选的行key集合",
|
|
290
|
-
"detail": {
|
|
291
|
-
"description": "选中的行 key 集合",
|
|
292
|
-
"type": "string[]"
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"name": "sort.update",
|
|
297
|
-
"description": "排序变化,detail 中的 sort 为对应排序列的 key/dataIndex,order 为升序/降序",
|
|
298
|
-
"detail": {
|
|
299
|
-
"description": "{ sort: 排序列的 key/dataIndex, order: 升序/降序 }",
|
|
300
|
-
"type": "SortUpdateEventDetail"
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"name": "row.expand",
|
|
305
|
-
"description": "点击展开图标时触发的事件,事件详情中`expanded`为是否展开,`record`被点击的行信息",
|
|
306
|
-
"detail": {
|
|
307
|
-
"description": "{ expanded: 是否展开, record: 被点击的行数据 }",
|
|
308
|
-
"type": "RowExpandEventDetail"
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"name": "expand.rows.change",
|
|
313
|
-
"description": "展开的行变化时触发的事件,事件详情为当前展开的所有行的`rowKey`集合",
|
|
314
|
-
"detail": {
|
|
315
|
-
"description": "{ expandedRows: 当前展开的所有行的 rowKey 集合 }",
|
|
316
|
-
"type": "ExpandRowsChangeEventDetail"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"name": "row.drag",
|
|
321
|
-
"description": "表格行拖拽结束发生的事件,事件详情为拖拽后重新排序的所有行数据",
|
|
117
|
+
"name": "cascader.change",
|
|
118
|
+
"description": "",
|
|
322
119
|
"detail": {
|
|
323
|
-
"description": "{
|
|
324
|
-
"type": "
|
|
120
|
+
"description": "{ value: 选择的值, selectedOptions: 选择的值所对应的 options }",
|
|
121
|
+
"type": "CascaderChangeEventDetail"
|
|
325
122
|
}
|
|
326
123
|
}
|
|
327
124
|
],
|
|
328
125
|
"slots": [],
|
|
329
|
-
"methods": [
|
|
330
|
-
{
|
|
331
|
-
"name": "filterSourceData",
|
|
332
|
-
"params": [
|
|
333
|
-
{
|
|
334
|
-
"name": "event",
|
|
335
|
-
"description": "搜索事件,event.detail.q 为搜索关键词",
|
|
336
|
-
"type": "CustomEvent"
|
|
337
|
-
}
|
|
338
|
-
],
|
|
339
|
-
"description": "搜索过滤",
|
|
340
|
-
"returns": {
|
|
341
|
-
"type": "void"
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"name": "expandAll",
|
|
346
|
-
"params": [],
|
|
347
|
-
"description": "展开所有行",
|
|
348
|
-
"returns": {}
|
|
349
|
-
}
|
|
350
|
-
],
|
|
126
|
+
"methods": [],
|
|
351
127
|
"parts": [],
|
|
352
|
-
"description": "
|
|
353
|
-
"category": "
|
|
354
|
-
"insider": true
|
|
128
|
+
"description": "级联选择器",
|
|
129
|
+
"category": "form-input-basic"
|
|
355
130
|
},
|
|
356
131
|
{
|
|
357
132
|
"name": "eo-next-table",
|
|
@@ -590,129 +365,354 @@
|
|
|
590
365
|
"category": "table"
|
|
591
366
|
},
|
|
592
367
|
{
|
|
593
|
-
"name": "eo-
|
|
368
|
+
"name": "eo-table",
|
|
594
369
|
"alias": [
|
|
595
|
-
"advanced.general-
|
|
370
|
+
"advanced.general-table"
|
|
596
371
|
],
|
|
597
372
|
"properties": [
|
|
598
373
|
{
|
|
599
|
-
"name": "
|
|
600
|
-
"description": "
|
|
601
|
-
"
|
|
374
|
+
"name": "showCard",
|
|
375
|
+
"description": "是否显示外层卡片",
|
|
376
|
+
"default": "true"
|
|
602
377
|
},
|
|
603
378
|
{
|
|
604
|
-
"name": "
|
|
605
|
-
"description": "
|
|
379
|
+
"name": "rowSelection",
|
|
380
|
+
"description": "表格行是否可选择,具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)",
|
|
381
|
+
"attribute": false,
|
|
382
|
+
"type": "false | TableRowSelection<any>"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "rowKey",
|
|
386
|
+
"description": "指定每一行的 key,不指定则默认为索引 index。强烈建议设置该属性,否则在某些情况下可能行为不如预期。",
|
|
606
387
|
"type": "string"
|
|
607
388
|
},
|
|
608
389
|
{
|
|
609
|
-
"name": "
|
|
610
|
-
"description": "
|
|
390
|
+
"name": "hiddenColumns",
|
|
391
|
+
"description": "隐藏相应列(输入对应的 dataIndex 或者 key 即可)",
|
|
392
|
+
"attribute": false,
|
|
393
|
+
"type": "Array<string | number>"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "showSelectInfo",
|
|
397
|
+
"description": "是否显示已选择信息和清除按钮。仅在设置了`rowSelection`时有效。默认不显示",
|
|
398
|
+
"default": "false"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "filters",
|
|
402
|
+
"description": "表头过滤的过滤项,key 为 column 的 dataIndex,value 为过滤值集合。",
|
|
403
|
+
"attribute": false,
|
|
404
|
+
"type": "Record<string, string[]>"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "configProps",
|
|
408
|
+
"description": "ant-design 的 Table 相关配置项,具体查阅:[Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
|
|
409
|
+
"attribute": false,
|
|
410
|
+
"type": "any"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "sort",
|
|
414
|
+
"description": "被排序列的 dataIndex。通常来自于 url 参数,可以设置成 ${QUERY.sort}。",
|
|
415
|
+
"type": "string | null"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "order",
|
|
419
|
+
"description": "升序/降序,可以设置成 ${QUERY.order}。",
|
|
420
|
+
"attribute": false,
|
|
421
|
+
"type": "string | number | null"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "rowDisabledConfig",
|
|
425
|
+
"description": "配置每一行是否禁用,其中 `field` 表示数据源中的字段路径, `value` 表示与其字段比较的值, `operator` 表示两者比较的方法,结果为 `true` 时会禁用当前行, 需要注意的是该配置需要在 `rowSelection: true` 的前提下使用,并且设置 `rowKey` 属性赋予每行唯一的 key,防止顺序变化时造成的错误勾选(如上 demo 所示)",
|
|
426
|
+
"attribute": false,
|
|
427
|
+
"type": "RowDisabledProps | RowDisabledProps[]"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "expandedRowBrick",
|
|
431
|
+
"description": "自定义行展开的构件 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf)",
|
|
432
|
+
"attribute": false,
|
|
433
|
+
"type": "{\n useBrick?: UseSingleBrickConfOrRenderFunction;\n }"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "expandIcon",
|
|
437
|
+
"description": "自定义展开图标。",
|
|
438
|
+
"default": "{collapsedIcon:{lib:'antd',icon:'down',theme:'outlined'},expandedIcon:{lib:'antd',icon:'right',theme:'outlined'}}",
|
|
439
|
+
"attribute": false,
|
|
440
|
+
"type": "{\n collapsedIcon: GeneralIconProps;\n expandedIcon: GeneralIconProps;\n }"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "expandIconAsCell",
|
|
444
|
+
"description": "展开的图标是否为一个单元格,默认显示在第一列;设置为 false 的时候,可以通过`expandIconColumnIndex`属性设置展开的图标在哪一列",
|
|
445
|
+
"default": "true",
|
|
446
|
+
"attribute": false
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "expandIconColumnIndex",
|
|
450
|
+
"description": "展开的图标显示在哪一列,如果没有 rowSelection,默认显示在第一列,否则显示在选择框后面。当`expandIconAsCell`为 false 时,该属性生效。",
|
|
451
|
+
"type": "number"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "expandRowByClick",
|
|
455
|
+
"description": "通过点击行来展开子行",
|
|
456
|
+
"type": "boolean"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"name": "optimizedColumns",
|
|
460
|
+
"description": "优化渲染的列(输入对应的 dataIndex),针对配置了 useBrick 的列。当前 antd 在更新 state 的时候,会全量渲染单元格,如果确定某一列在后续操作中不需要重新渲染,例如仅作为展示的单元格,可通过该属性设置以优化性能。注意,在树形表格中,当某一列内包含展开/收起按钮,则不应该设置该列。",
|
|
461
|
+
"attribute": false,
|
|
462
|
+
"type": "Array<string | number>"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "stripEmptyExpandableChildren",
|
|
466
|
+
"description": "树形数据展示时是否需要去除空数组",
|
|
467
|
+
"default": "false",
|
|
468
|
+
"attribute": false
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "defaultExpandAllRows",
|
|
472
|
+
"description": "初始时,是否展开所有行",
|
|
473
|
+
"type": "boolean"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "ellipsisInfo",
|
|
477
|
+
"description": "是否显示省略信息",
|
|
478
|
+
"type": "boolean"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "expandedRowKeys",
|
|
482
|
+
"description": "展开的行的 rowKey",
|
|
483
|
+
"attribute": false,
|
|
484
|
+
"type": "string[]"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "selectAllChildren",
|
|
488
|
+
"description": "表格树形数据展示的时候,行选择父节点的时候是否同步勾选/取消勾选所有子节点,并且被同步勾选的子节点不能单独取消。注意,该属性必须设置 `rowKey` 属性。",
|
|
489
|
+
"type": "boolean"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "defaultSelectAll",
|
|
493
|
+
"description": "是否默认选择所有行。注意,该属性必须设置 `rowKey` 属性。",
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "childrenColumnName",
|
|
498
|
+
"description": "指定树形结构的列名",
|
|
499
|
+
"default": "children",
|
|
500
|
+
"attribute": false
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "sortable",
|
|
504
|
+
"description": "是否支持排序。默认开启,当对应列的sorter设置成true时则可排序。sortable为false时则排序都不生效。",
|
|
505
|
+
"default": "true",
|
|
506
|
+
"attribute": false
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "frontSearch",
|
|
510
|
+
"description": "是否前端进行搜索,配合`presentational-bricks.brick-input`使用",
|
|
511
|
+
"type": "boolean"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "frontSearchQuery",
|
|
515
|
+
"description": "前端搜索参数",
|
|
516
|
+
"default": "\"\""
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "exactSearch",
|
|
520
|
+
"description": "是否精确搜索",
|
|
611
521
|
"type": "boolean"
|
|
612
522
|
},
|
|
613
523
|
{
|
|
614
|
-
"name": "
|
|
615
|
-
"description": "
|
|
524
|
+
"name": "frontSearchFilterKeys",
|
|
525
|
+
"description": "进行前端搜索的字段,支持嵌套的写法如[\"name\",\"value.a\"],不配置的时候默认为对所有 columns 的 dataIndex[]进行前端搜索",
|
|
616
526
|
"attribute": false,
|
|
617
|
-
"type": "
|
|
527
|
+
"type": "string[]"
|
|
618
528
|
},
|
|
619
529
|
{
|
|
620
|
-
"name": "
|
|
621
|
-
"description": "
|
|
622
|
-
"
|
|
623
|
-
"attribute": false,
|
|
624
|
-
"type": "AntdCascaderProps[\"fieldNames\"]"
|
|
530
|
+
"name": "page",
|
|
531
|
+
"description": "页码。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 page;前台搜索的时候,一般配置成 \"${query.page=1|number}\"",
|
|
532
|
+
"type": "number"
|
|
625
533
|
},
|
|
626
534
|
{
|
|
627
|
-
"name": "
|
|
628
|
-
"description": "
|
|
535
|
+
"name": "pageSize",
|
|
536
|
+
"description": "页码条数。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 pageSize/page_size;前台搜索的时候,一般配置成 \"${query.pageSize=10|number}\"",
|
|
537
|
+
"type": "number"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "scrollConfigs",
|
|
541
|
+
"description": "表格是否可滚动,也可以指定滚动区域的宽、高,配置项。详见 [scroll](https://ant.design/components/table-cn/#scroll)",
|
|
542
|
+
"default": "{ x: true }",
|
|
629
543
|
"attribute": false,
|
|
630
|
-
"type": "
|
|
544
|
+
"type": "TableProps<unknown>[\"scroll\"]"
|
|
631
545
|
},
|
|
632
546
|
{
|
|
633
|
-
"name": "
|
|
634
|
-
"description": "
|
|
635
|
-
"
|
|
547
|
+
"name": "qField",
|
|
548
|
+
"description": "把过滤条件更新到 url 时的字段名",
|
|
549
|
+
"default": "\"q\""
|
|
636
550
|
},
|
|
637
551
|
{
|
|
638
|
-
"name": "
|
|
639
|
-
"description": "
|
|
552
|
+
"name": "tableDraggable",
|
|
553
|
+
"description": "表格行是否可拖拽,注意,树形数据的表格不支持该功能",
|
|
640
554
|
"type": "boolean"
|
|
641
555
|
},
|
|
642
556
|
{
|
|
643
|
-
"name": "
|
|
644
|
-
"description": "
|
|
557
|
+
"name": "zebraPattern",
|
|
558
|
+
"description": "是否展示斑马纹",
|
|
645
559
|
"type": "boolean"
|
|
646
560
|
},
|
|
647
561
|
{
|
|
648
|
-
"name": "
|
|
649
|
-
"description": "
|
|
650
|
-
"default": "true",
|
|
562
|
+
"name": "storeCheckedByUrl",
|
|
563
|
+
"description": "翻页时是否记住之前选中的项。注意,选中项的rowKey将保存在url中,如果不设置rowKey,该设置不生效。如果选择太多可能会造成url过长,请谨慎使用",
|
|
651
564
|
"type": "boolean"
|
|
652
565
|
},
|
|
653
566
|
{
|
|
654
|
-
"name": "
|
|
655
|
-
"description": "
|
|
656
|
-
"default": "
|
|
567
|
+
"name": "extraRows",
|
|
568
|
+
"description": "额外的行,通常为跨页勾选时,不在当前页的行",
|
|
569
|
+
"default": "[]",
|
|
570
|
+
"attribute": false,
|
|
571
|
+
"type": "Record<string, unknown>[]"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "autoSelectParentWhenAllChildrenSelected",
|
|
575
|
+
"description": "当所有子节点选中时,自动选中父节点",
|
|
657
576
|
"type": "boolean"
|
|
658
577
|
},
|
|
659
578
|
{
|
|
660
|
-
"name": "
|
|
661
|
-
"description": "
|
|
662
|
-
"
|
|
663
|
-
"type": "GeneralIconProps"
|
|
579
|
+
"name": "thTransparent",
|
|
580
|
+
"description": "表格表头是否透明",
|
|
581
|
+
"type": "boolean"
|
|
664
582
|
},
|
|
665
583
|
{
|
|
666
|
-
"name": "
|
|
667
|
-
"description": "
|
|
668
|
-
"default": "
|
|
669
|
-
"type": "AntdCascaderProps[\"expandTrigger\"]"
|
|
584
|
+
"name": "showHeader",
|
|
585
|
+
"description": "是否显示表头",
|
|
586
|
+
"default": "true"
|
|
670
587
|
},
|
|
671
588
|
{
|
|
672
|
-
"name": "
|
|
673
|
-
"description": "
|
|
674
|
-
"
|
|
675
|
-
"type": "
|
|
589
|
+
"name": "pagination",
|
|
590
|
+
"description": "是否显示分页",
|
|
591
|
+
"attribute": false,
|
|
592
|
+
"type": "false | TablePaginationConfig"
|
|
676
593
|
},
|
|
677
594
|
{
|
|
678
595
|
"name": "size",
|
|
679
|
-
"description": "
|
|
680
|
-
"type": "
|
|
596
|
+
"description": "表格大小(antd原生size)",
|
|
597
|
+
"type": "SizeType | \"x-small\""
|
|
681
598
|
},
|
|
682
599
|
{
|
|
683
|
-
"name": "
|
|
684
|
-
"description": "
|
|
685
|
-
"
|
|
686
|
-
"type": "
|
|
600
|
+
"name": "type",
|
|
601
|
+
"description": "选框类型(单选/多选)",
|
|
602
|
+
"attribute": false,
|
|
603
|
+
"type": "RowSelectionType"
|
|
687
604
|
},
|
|
688
605
|
{
|
|
689
|
-
"name": "
|
|
690
|
-
"description": "
|
|
691
|
-
"
|
|
692
|
-
"type": "number | \"responsive\""
|
|
606
|
+
"name": "shouldUpdateUrlParams",
|
|
607
|
+
"description": "是否更新 url 参数。设置为否之后,如果是后台进行分页/排序等功能,则需要结合事件进行编排。如果是前台进行分页/排序,则不需要。",
|
|
608
|
+
"default": "true"
|
|
693
609
|
},
|
|
694
610
|
{
|
|
695
|
-
"name": "
|
|
696
|
-
"description": "
|
|
611
|
+
"name": "shouldRenderWhenUrlParamsUpdate",
|
|
612
|
+
"description": "更新 url 参数时是否触发页面重新渲染。仅在`shouldUpdateUrlParams`为true时有效。",
|
|
613
|
+
"default": "true"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "selectedRowKeys",
|
|
617
|
+
"description": "指定选中项的 key 数组",
|
|
618
|
+
"default": "[]",
|
|
697
619
|
"attribute": false,
|
|
698
|
-
"type": "
|
|
620
|
+
"type": "React.Key[]"
|
|
699
621
|
}
|
|
700
622
|
],
|
|
701
623
|
"events": [
|
|
702
624
|
{
|
|
703
|
-
"name": "
|
|
704
|
-
"description": "",
|
|
625
|
+
"name": "page.update",
|
|
626
|
+
"description": "页码变化,pagePath 可在 fields.page 中设置,默认为 page",
|
|
705
627
|
"detail": {
|
|
706
|
-
"description": "{
|
|
707
|
-
"type": "
|
|
628
|
+
"description": "{ page: 当前页码, pageSize: 每页条数 }",
|
|
629
|
+
"type": "Record<string, number>"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "filter.update",
|
|
634
|
+
"description": "每页条数变化 ,pagePath 可在 fields.page 中设置,pageSizePath 可在 fields.pageSize 中设置,默认为 pageSize",
|
|
635
|
+
"detail": {
|
|
636
|
+
"description": "{ page: 当前页码, pageSize: 每页条数 }",
|
|
637
|
+
"type": "Record<string, number>"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "select.update",
|
|
642
|
+
"description": "勾选框变化,detail 中为所选的行数据",
|
|
643
|
+
"detail": {
|
|
644
|
+
"description": "选中的行数据数组",
|
|
645
|
+
"type": "Record<string, any>[]"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "select.row.keys.update",
|
|
650
|
+
"description": "勾选框变化,detail 中为所选的行key集合",
|
|
651
|
+
"detail": {
|
|
652
|
+
"description": "选中的行 key 集合",
|
|
653
|
+
"type": "string[]"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "sort.update",
|
|
658
|
+
"description": "排序变化,detail 中的 sort 为对应排序列的 key/dataIndex,order 为升序/降序",
|
|
659
|
+
"detail": {
|
|
660
|
+
"description": "{ sort: 排序列的 key/dataIndex, order: 升序/降序 }",
|
|
661
|
+
"type": "SortUpdateEventDetail"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"name": "row.expand",
|
|
666
|
+
"description": "点击展开图标时触发的事件,事件详情中`expanded`为是否展开,`record`被点击的行信息",
|
|
667
|
+
"detail": {
|
|
668
|
+
"description": "{ expanded: 是否展开, record: 被点击的行数据 }",
|
|
669
|
+
"type": "RowExpandEventDetail"
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "expand.rows.change",
|
|
674
|
+
"description": "展开的行变化时触发的事件,事件详情为当前展开的所有行的`rowKey`集合",
|
|
675
|
+
"detail": {
|
|
676
|
+
"description": "{ expandedRows: 当前展开的所有行的 rowKey 集合 }",
|
|
677
|
+
"type": "ExpandRowsChangeEventDetail"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "row.drag",
|
|
682
|
+
"description": "表格行拖拽结束发生的事件,事件详情为拖拽后重新排序的所有行数据",
|
|
683
|
+
"detail": {
|
|
684
|
+
"description": "{ data: 拖拽后重新排序的所有行数据 }",
|
|
685
|
+
"type": "RowDragEventDetail"
|
|
708
686
|
}
|
|
709
687
|
}
|
|
710
688
|
],
|
|
711
689
|
"slots": [],
|
|
712
|
-
"methods": [
|
|
690
|
+
"methods": [
|
|
691
|
+
{
|
|
692
|
+
"name": "filterSourceData",
|
|
693
|
+
"params": [
|
|
694
|
+
{
|
|
695
|
+
"name": "event",
|
|
696
|
+
"description": "搜索事件,event.detail.q 为搜索关键词",
|
|
697
|
+
"type": "CustomEvent"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"description": "搜索过滤",
|
|
701
|
+
"returns": {
|
|
702
|
+
"type": "void"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "expandAll",
|
|
707
|
+
"params": [],
|
|
708
|
+
"description": "展开所有行",
|
|
709
|
+
"returns": {}
|
|
710
|
+
}
|
|
711
|
+
],
|
|
713
712
|
"parts": [],
|
|
714
|
-
"description": "
|
|
715
|
-
"category": "
|
|
713
|
+
"description": "简易表格构件。\n\n⚠️ 通常情况下,应使用 `eo-next-table` 替代。",
|
|
714
|
+
"category": "table",
|
|
715
|
+
"insider": true
|
|
716
716
|
},
|
|
717
717
|
{
|
|
718
718
|
"name": "eo-workbench-layout",
|
|
@@ -1158,6 +1158,29 @@
|
|
|
1158
1158
|
"description": "树选择器,支持从树形数据中单选或多选节点",
|
|
1159
1159
|
"category": "form-input-basic"
|
|
1160
1160
|
},
|
|
1161
|
+
{
|
|
1162
|
+
"name": "eo-text-tooltip",
|
|
1163
|
+
"properties": [
|
|
1164
|
+
{
|
|
1165
|
+
"name": "label",
|
|
1166
|
+
"description": "显示的文本内容,超出时以省略号截断",
|
|
1167
|
+
"default": null,
|
|
1168
|
+
"type": "string"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"name": "lineClamp",
|
|
1172
|
+
"description": "省略的行数,超过该行数后显示省略号,设为 0 表示不省略",
|
|
1173
|
+
"default": "1",
|
|
1174
|
+
"type": "number"
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1177
|
+
"events": [],
|
|
1178
|
+
"slots": [],
|
|
1179
|
+
"methods": [],
|
|
1180
|
+
"parts": [],
|
|
1181
|
+
"description": "文本超出显示区域时,鼠标悬浮显示完整内容的 Tooltip",
|
|
1182
|
+
"category": "display"
|
|
1183
|
+
},
|
|
1161
1184
|
{
|
|
1162
1185
|
"name": "advanced.pdf-viewer",
|
|
1163
1186
|
"properties": [
|
|
@@ -1189,29 +1212,6 @@
|
|
|
1189
1212
|
"parts": [],
|
|
1190
1213
|
"description": "PDF 文件预览器,支持分页跳转和关键字高亮搜索",
|
|
1191
1214
|
"category": "display"
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
"name": "eo-text-tooltip",
|
|
1195
|
-
"properties": [
|
|
1196
|
-
{
|
|
1197
|
-
"name": "label",
|
|
1198
|
-
"description": "显示的文本内容,超出时以省略号截断",
|
|
1199
|
-
"default": null,
|
|
1200
|
-
"type": "string"
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"name": "lineClamp",
|
|
1204
|
-
"description": "省略的行数,超过该行数后显示省略号,设为 0 表示不省略",
|
|
1205
|
-
"default": "1",
|
|
1206
|
-
"type": "number"
|
|
1207
|
-
}
|
|
1208
|
-
],
|
|
1209
|
-
"events": [],
|
|
1210
|
-
"slots": [],
|
|
1211
|
-
"methods": [],
|
|
1212
|
-
"parts": [],
|
|
1213
|
-
"description": "文本超出显示区域时,鼠标悬浮显示完整内容的 Tooltip",
|
|
1214
|
-
"category": "display"
|
|
1215
1215
|
}
|
|
1216
1216
|
],
|
|
1217
1217
|
"providers": [
|