@next-bricks/advanced 0.33.7 → 0.33.9
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/{4837.75b7c522.js → 4837.eae5e745.js} +2 -2
- package/dist/chunks/{4837.75b7c522.js.map → 4837.eae5e745.js.map} +1 -1
- package/dist/chunks/{4947.b602e1b9.js → 4947.2818d430.js} +3 -3
- package/dist/chunks/{4947.b602e1b9.js.map → 4947.2818d430.js.map} +1 -1
- package/dist/chunks/5399.13bbe25c.js +2 -0
- package/dist/chunks/5399.13bbe25c.js.map +1 -0
- package/dist/chunks/5479.825e4644.js +2 -0
- package/dist/chunks/{5479.71a680f0.js.map → 5479.825e4644.js.map} +1 -1
- package/dist/chunks/{7218.24fcd353.js → 7218.6b3b4a01.js} +2 -2
- package/dist/chunks/{7218.24fcd353.js.map → 7218.6b3b4a01.js.map} +1 -1
- package/dist/chunks/9260.a2d3b45a.js +2 -0
- package/dist/chunks/{9260.6b638ea9.js.map → 9260.a2d3b45a.js.map} +1 -1
- package/dist/chunks/{capture-snapshot.2a4b4729.js → capture-snapshot.1f3ebdb0.js} +2 -2
- package/dist/chunks/{capture-snapshot.2a4b4729.js.map → capture-snapshot.1f3ebdb0.js.map} +1 -1
- package/dist/chunks/eo-cascader.dc8fa9b8.js +2 -0
- package/dist/chunks/{eo-cascader.c758d667.js.map → eo-cascader.dc8fa9b8.js.map} +1 -1
- package/dist/chunks/eo-table.4bfc9274.js +2 -0
- package/dist/chunks/{eo-table.d2de186c.js.map → eo-table.4bfc9274.js.map} +1 -1
- package/dist/chunks/eo-tree-select.5621c84f.js +2 -0
- package/dist/chunks/{eo-tree-select.bad613ac.js.map → eo-tree-select.5621c84f.js.map} +1 -1
- package/dist/chunks/{eo-tree.1cf852c0.js → eo-tree.7fdbb636.js} +3 -3
- package/dist/chunks/{eo-tree.1cf852c0.js.map → eo-tree.7fdbb636.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout.d9789621.js +2 -0
- package/dist/chunks/{eo-workbench-layout.a24a68d9.js.map → eo-workbench-layout.d9789621.js.map} +1 -1
- package/dist/chunks/main.7422a18c.js +2 -0
- package/dist/chunks/{main.e30f4239.js.map → main.7422a18c.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.05022d6b.js +2 -0
- package/dist/{index.f50fab32.js.map → index.05022d6b.js.map} +1 -1
- package/dist/manifest.json +394 -394
- package/package.json +2 -2
- package/dist/chunks/5399.8701798e.js +0 -2
- package/dist/chunks/5399.8701798e.js.map +0 -1
- package/dist/chunks/5479.71a680f0.js +0 -2
- package/dist/chunks/9260.6b638ea9.js +0 -2
- package/dist/chunks/eo-cascader.c758d667.js +0 -2
- package/dist/chunks/eo-table.d2de186c.js +0 -2
- package/dist/chunks/eo-tree-select.bad613ac.js +0 -2
- package/dist/chunks/eo-workbench-layout.a24a68d9.js +0 -2
- package/dist/chunks/main.e30f4239.js +0 -2
- package/dist/index.f50fab32.js +0 -2
- /package/dist/chunks/{4947.b602e1b9.js.LICENSE.txt → 4947.2818d430.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-tree.1cf852c0.js.LICENSE.txt → eo-tree.7fdbb636.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,650 +4,650 @@
|
|
|
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",
|
|
26
14
|
"type": "string"
|
|
27
15
|
},
|
|
28
16
|
{
|
|
29
|
-
"name": "
|
|
30
|
-
"
|
|
31
|
-
"attribute": false,
|
|
32
|
-
"type": "Array<string | number>"
|
|
17
|
+
"name": "label",
|
|
18
|
+
"type": "string"
|
|
33
19
|
},
|
|
34
20
|
{
|
|
35
|
-
"name": "
|
|
36
|
-
"
|
|
37
|
-
"default": "false"
|
|
21
|
+
"name": "required",
|
|
22
|
+
"type": "boolean"
|
|
38
23
|
},
|
|
39
24
|
{
|
|
40
|
-
"name": "
|
|
41
|
-
"description": "表头过滤的过滤项,key 为 column 的 dataIndex,value 为过滤值集合。",
|
|
25
|
+
"name": "options",
|
|
42
26
|
"attribute": false,
|
|
43
|
-
"type": "
|
|
27
|
+
"type": "AntdCascaderProps[\"options\"]"
|
|
44
28
|
},
|
|
45
29
|
{
|
|
46
|
-
"name": "
|
|
47
|
-
"description": "ant-design 的 Table 相关配置项,具体查阅:[Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
|
|
30
|
+
"name": "fieldNames",
|
|
48
31
|
"attribute": false,
|
|
49
|
-
"type": "
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
"name": "sort",
|
|
53
|
-
"description": "被排序列的 dataIndex。通常来自于 url 参数,可以设置成 ${QUERY.sort}。",
|
|
54
|
-
"type": "string | null"
|
|
32
|
+
"type": "AntdCascaderProps[\"fieldNames\"]",
|
|
33
|
+
"default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }"
|
|
55
34
|
},
|
|
56
35
|
{
|
|
57
|
-
"name": "
|
|
58
|
-
"description": "升序/降序,可以设置成 ${QUERY.order}。",
|
|
36
|
+
"name": "value",
|
|
59
37
|
"attribute": false,
|
|
60
|
-
"type": "
|
|
38
|
+
"type": "AntdCascaderProps[\"value\"]"
|
|
61
39
|
},
|
|
62
40
|
{
|
|
63
|
-
"name": "
|
|
64
|
-
"
|
|
65
|
-
"attribute": false,
|
|
66
|
-
"type": "RowDisabledProps | RowDisabledProps[]"
|
|
41
|
+
"name": "placeholder",
|
|
42
|
+
"type": "string"
|
|
67
43
|
},
|
|
68
44
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"
|
|
71
|
-
"attribute": false,
|
|
72
|
-
"type": "{\n useBrick?: UseSingleBrickConf;\n }"
|
|
45
|
+
"name": "multiple",
|
|
46
|
+
"type": "boolean"
|
|
73
47
|
},
|
|
74
48
|
{
|
|
75
|
-
"name": "
|
|
76
|
-
"
|
|
77
|
-
"default": "{collapsedIcon:{lib:'antd',icon:'down',theme:'outlined'},expandedIcon:{lib:'antd',icon:'right',theme:'outlined'}}",
|
|
78
|
-
"attribute": false,
|
|
79
|
-
"type": "{\n collapsedIcon: GeneralIconProps;\n expandedIcon: GeneralIconProps;\n }"
|
|
49
|
+
"name": "disabled",
|
|
50
|
+
"type": "boolean"
|
|
80
51
|
},
|
|
81
52
|
{
|
|
82
|
-
"name": "
|
|
83
|
-
"
|
|
84
|
-
"default": "true"
|
|
85
|
-
"attribute": false
|
|
53
|
+
"name": "allowClear",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": "true"
|
|
86
56
|
},
|
|
87
57
|
{
|
|
88
|
-
"name": "
|
|
89
|
-
"
|
|
90
|
-
"
|
|
58
|
+
"name": "showSearch",
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": "true"
|
|
91
61
|
},
|
|
92
62
|
{
|
|
93
|
-
"name": "
|
|
94
|
-
"
|
|
95
|
-
"type": "
|
|
63
|
+
"name": "suffixIcon",
|
|
64
|
+
"attribute": false,
|
|
65
|
+
"type": "GeneralIconProps"
|
|
96
66
|
},
|
|
97
67
|
{
|
|
98
|
-
"name": "
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"type": "Array<string | number>"
|
|
68
|
+
"name": "expandTrigger",
|
|
69
|
+
"type": "AntdCascaderProps[\"expandTrigger\"]",
|
|
70
|
+
"default": "\"click\""
|
|
102
71
|
},
|
|
103
72
|
{
|
|
104
|
-
"name": "
|
|
105
|
-
"
|
|
106
|
-
"default": "
|
|
107
|
-
"attribute": false
|
|
73
|
+
"name": "popupPlacement",
|
|
74
|
+
"type": "AntdCascaderProps[\"placement\"]",
|
|
75
|
+
"default": "\"bottomLeft\""
|
|
108
76
|
},
|
|
109
77
|
{
|
|
110
|
-
"name": "
|
|
111
|
-
"
|
|
112
|
-
"type": "boolean"
|
|
78
|
+
"name": "size",
|
|
79
|
+
"type": "AntdCascaderProps[\"size\"]"
|
|
113
80
|
},
|
|
114
81
|
{
|
|
115
|
-
"name": "
|
|
116
|
-
"
|
|
117
|
-
"
|
|
82
|
+
"name": "limit",
|
|
83
|
+
"type": "number",
|
|
84
|
+
"default": "50"
|
|
118
85
|
},
|
|
119
86
|
{
|
|
120
|
-
"name": "
|
|
121
|
-
"description": "展开的行的 rowKey",
|
|
87
|
+
"name": "maxTagCount",
|
|
122
88
|
"attribute": false,
|
|
123
|
-
"type": "
|
|
89
|
+
"type": "number | \"responsive\""
|
|
124
90
|
},
|
|
125
91
|
{
|
|
126
|
-
"name": "
|
|
127
|
-
"
|
|
128
|
-
"type": "
|
|
92
|
+
"name": "cascaderStyle",
|
|
93
|
+
"attribute": false,
|
|
94
|
+
"type": "CSSProperties"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"events": [
|
|
98
|
+
{
|
|
99
|
+
"name": "cascader.change",
|
|
100
|
+
"description": "",
|
|
101
|
+
"detail": {
|
|
102
|
+
"description": "{ value: AntdCascaderProps[\"value\"], selectedOptions: DefaultOptionType[] | DefaultOptionType[][] }",
|
|
103
|
+
"type": "{\n value: AntdCascaderProps[\"value\"];\n selectedOptions: DefaultOptionType[] | DefaultOptionType[][];\n }"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"slots": [],
|
|
108
|
+
"methods": [],
|
|
109
|
+
"parts": [],
|
|
110
|
+
"description": "级联选择器",
|
|
111
|
+
"category": "form-input-basic"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "eo-next-table",
|
|
115
|
+
"properties": [
|
|
116
|
+
{
|
|
117
|
+
"name": "rowKey",
|
|
118
|
+
"description": "指定表格行的 key",
|
|
119
|
+
"default": "\"key\"",
|
|
120
|
+
"type": "string"
|
|
129
121
|
},
|
|
130
122
|
{
|
|
131
|
-
"name": "
|
|
132
|
-
"description": "
|
|
133
|
-
"
|
|
123
|
+
"name": "columns",
|
|
124
|
+
"description": "列定义",
|
|
125
|
+
"attribute": false,
|
|
126
|
+
"type": "Column[]"
|
|
134
127
|
},
|
|
135
128
|
{
|
|
136
|
-
"name": "
|
|
137
|
-
"description": "
|
|
138
|
-
"
|
|
139
|
-
"
|
|
129
|
+
"name": "cell",
|
|
130
|
+
"description": "单元格",
|
|
131
|
+
"attribute": false,
|
|
132
|
+
"type": "CellConfig"
|
|
140
133
|
},
|
|
141
134
|
{
|
|
142
|
-
"name": "
|
|
143
|
-
"description": "
|
|
144
|
-
"
|
|
145
|
-
"
|
|
135
|
+
"name": "dataSource",
|
|
136
|
+
"description": "数据源",
|
|
137
|
+
"attribute": false,
|
|
138
|
+
"type": "DataSource"
|
|
146
139
|
},
|
|
147
140
|
{
|
|
148
141
|
"name": "frontSearch",
|
|
149
|
-
"description": "
|
|
142
|
+
"description": "是否前端搜索",
|
|
150
143
|
"type": "boolean"
|
|
151
144
|
},
|
|
152
145
|
{
|
|
153
|
-
"name": "
|
|
154
|
-
"description": "
|
|
155
|
-
"
|
|
146
|
+
"name": "pagination",
|
|
147
|
+
"description": "分页配置",
|
|
148
|
+
"attribute": false,
|
|
149
|
+
"type": "PaginationType"
|
|
156
150
|
},
|
|
157
151
|
{
|
|
158
|
-
"name": "
|
|
159
|
-
"description": "
|
|
152
|
+
"name": "multiSort",
|
|
153
|
+
"description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
|
|
160
154
|
"type": "boolean"
|
|
161
155
|
},
|
|
162
156
|
{
|
|
163
|
-
"name": "
|
|
164
|
-
"description": "
|
|
157
|
+
"name": "sort",
|
|
158
|
+
"description": "排序信息",
|
|
165
159
|
"attribute": false,
|
|
166
|
-
"type": "
|
|
160
|
+
"type": "Sort | Sort[]"
|
|
167
161
|
},
|
|
168
162
|
{
|
|
169
|
-
"name": "
|
|
170
|
-
"description": "
|
|
171
|
-
"
|
|
163
|
+
"name": "rowSelection",
|
|
164
|
+
"description": "表格行可选择配置",
|
|
165
|
+
"attribute": false,
|
|
166
|
+
"type": "RowSelectionType"
|
|
172
167
|
},
|
|
173
168
|
{
|
|
174
|
-
"name": "
|
|
175
|
-
"description": "
|
|
176
|
-
"
|
|
169
|
+
"name": "selectedRowKeys",
|
|
170
|
+
"description": "选中项的 key",
|
|
171
|
+
"attribute": false,
|
|
172
|
+
"type": "(string | number)[]"
|
|
177
173
|
},
|
|
178
174
|
{
|
|
179
|
-
"name": "
|
|
180
|
-
"description": "",
|
|
181
|
-
"default": "{ x: true }",
|
|
175
|
+
"name": "hiddenColumns",
|
|
176
|
+
"description": "隐藏的列(输入对应的 column.key)",
|
|
182
177
|
"attribute": false,
|
|
183
|
-
"type": "
|
|
178
|
+
"type": "(string | number)[]"
|
|
184
179
|
},
|
|
185
180
|
{
|
|
186
|
-
"name": "
|
|
187
|
-
"description": "
|
|
188
|
-
"
|
|
181
|
+
"name": "expandable",
|
|
182
|
+
"description": "表格行展开配置",
|
|
183
|
+
"attribute": false,
|
|
184
|
+
"type": "ExpandableType"
|
|
189
185
|
},
|
|
190
186
|
{
|
|
191
|
-
"name": "
|
|
192
|
-
"description": "
|
|
193
|
-
"
|
|
187
|
+
"name": "expandedRowKeys",
|
|
188
|
+
"description": "展开项的 key",
|
|
189
|
+
"attribute": false,
|
|
190
|
+
"type": "(string | number)[]"
|
|
194
191
|
},
|
|
195
192
|
{
|
|
196
|
-
"name": "
|
|
197
|
-
"description": "
|
|
198
|
-
"
|
|
193
|
+
"name": "childrenColumnName",
|
|
194
|
+
"description": "树形结构的列名",
|
|
195
|
+
"default": "\"children\"",
|
|
196
|
+
"type": "string"
|
|
199
197
|
},
|
|
200
198
|
{
|
|
201
|
-
"name": "
|
|
202
|
-
"description": "
|
|
199
|
+
"name": "rowDraggable",
|
|
200
|
+
"description": "表格行拖拽配置",
|
|
203
201
|
"type": "boolean"
|
|
204
202
|
},
|
|
205
203
|
{
|
|
206
|
-
"name": "
|
|
207
|
-
"description": "
|
|
208
|
-
"default": "[]",
|
|
204
|
+
"name": "searchFields",
|
|
205
|
+
"description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
|
|
209
206
|
"attribute": false,
|
|
210
|
-
"type": "
|
|
207
|
+
"type": "(string | string[])[]"
|
|
211
208
|
},
|
|
212
209
|
{
|
|
213
|
-
"name": "
|
|
214
|
-
"description": "
|
|
210
|
+
"name": "size",
|
|
211
|
+
"description": "表格大小",
|
|
212
|
+
"default": "\"large\"",
|
|
213
|
+
"type": "TableProps<RecordType>[\"size\"]"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "showHeader",
|
|
217
|
+
"description": "是否显示表头",
|
|
218
|
+
"default": "true",
|
|
215
219
|
"type": "boolean"
|
|
216
220
|
},
|
|
217
221
|
{
|
|
218
|
-
"name": "
|
|
219
|
-
"description": "
|
|
220
|
-
"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "showHeader",
|
|
224
|
-
"description": "是否显示表头",
|
|
225
|
-
"default": "true"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "pagination",
|
|
229
|
-
"description": "是否显示分页",
|
|
230
|
-
"attribute": false,
|
|
231
|
-
"type": "false | TablePaginationConfig"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "size",
|
|
235
|
-
"description": "表格大小(antd原生size)",
|
|
236
|
-
"type": "SizeType | \"x-small\""
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "type",
|
|
240
|
-
"description": "选框类型(单选/多选)",
|
|
222
|
+
"name": "scrollConfig",
|
|
223
|
+
"description": "滚动配置",
|
|
224
|
+
"default": "{ x: true }",
|
|
241
225
|
"attribute": false,
|
|
242
|
-
"type": "
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"name": "shouldUpdateUrlParams",
|
|
246
|
-
"description": "是否更新 url 参数。设置为否之后,如果是后台进行分页/排序等功能,则需要结合事件进行编排。如果是前台进行分页/排序,则不需要。",
|
|
247
|
-
"default": "true"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"name": "shouldRenderWhenUrlParamsUpdate",
|
|
251
|
-
"description": "更新 url 参数时是否触发页面重新渲染。仅在`shouldUpdateUrlParams`为true时有效。",
|
|
252
|
-
"default": "true"
|
|
226
|
+
"type": "TableProps<RecordType>[\"scroll\"]"
|
|
253
227
|
},
|
|
254
228
|
{
|
|
255
|
-
"name": "
|
|
256
|
-
"description": "
|
|
257
|
-
"default": "[]",
|
|
229
|
+
"name": "optimizedColumns",
|
|
230
|
+
"description": "优化渲染的列(输入对应的 column.key)",
|
|
258
231
|
"attribute": false,
|
|
259
|
-
"type": "
|
|
232
|
+
"type": "(string | number)[]"
|
|
260
233
|
}
|
|
261
234
|
],
|
|
262
235
|
"events": [
|
|
263
236
|
{
|
|
264
|
-
"name": "page.
|
|
265
|
-
"description": "
|
|
266
|
-
"detail": {
|
|
267
|
-
"type": "Record<string, number>"
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"name": "filter.update",
|
|
272
|
-
"description": "每页条数变化 ,pagePath 可在 fields.page 中设置,pageSizePath 可在 fields.pageSize 中设置,默认为 pageSize",
|
|
237
|
+
"name": "page.change",
|
|
238
|
+
"description": "page 或 pageSize 改变的回调",
|
|
273
239
|
"detail": {
|
|
274
|
-
"
|
|
240
|
+
"description": "改变后的页码及每页条数",
|
|
241
|
+
"type": "{ page: number; pageSize: number }"
|
|
275
242
|
}
|
|
276
243
|
},
|
|
277
244
|
{
|
|
278
|
-
"name": "
|
|
279
|
-
"description": "
|
|
245
|
+
"name": "page.size.change",
|
|
246
|
+
"description": "pageSize 变化的回调",
|
|
280
247
|
"detail": {
|
|
281
|
-
"
|
|
248
|
+
"description": "改变后的页码及每页条数",
|
|
249
|
+
"type": "{\n page: number;\n pageSize: number;\n }"
|
|
282
250
|
}
|
|
283
251
|
},
|
|
284
252
|
{
|
|
285
|
-
"name": "
|
|
286
|
-
"description": "
|
|
253
|
+
"name": "sort.change",
|
|
254
|
+
"description": "排序变化的回调",
|
|
287
255
|
"detail": {
|
|
288
|
-
"
|
|
256
|
+
"description": "当前排序的信息",
|
|
257
|
+
"type": "Sort | Sort[] | undefined"
|
|
289
258
|
}
|
|
290
259
|
},
|
|
291
260
|
{
|
|
292
|
-
"name": "
|
|
293
|
-
"description": "
|
|
261
|
+
"name": "row.select",
|
|
262
|
+
"description": "行选中项发生变化时的回调",
|
|
294
263
|
"detail": {
|
|
295
|
-
"
|
|
264
|
+
"description": "改变后的 rowKey 及行数据",
|
|
265
|
+
"type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
|
|
296
266
|
}
|
|
297
267
|
},
|
|
298
268
|
{
|
|
299
269
|
"name": "row.expand",
|
|
300
|
-
"description": "
|
|
270
|
+
"description": "点击展开图标时触发",
|
|
301
271
|
"detail": {
|
|
302
|
-
"
|
|
272
|
+
"description": "当前行的展开情况及数据",
|
|
273
|
+
"type": "{\n expanded: boolean;\n record: RecordType;\n }"
|
|
303
274
|
}
|
|
304
275
|
},
|
|
305
276
|
{
|
|
306
|
-
"name": "
|
|
307
|
-
"description": "
|
|
277
|
+
"name": "expanded.rows.change",
|
|
278
|
+
"description": "展开的行变化时触发",
|
|
308
279
|
"detail": {
|
|
309
|
-
"
|
|
280
|
+
"description": "所有展开行的 key",
|
|
281
|
+
"type": "(string | number)[]"
|
|
310
282
|
}
|
|
311
283
|
},
|
|
312
284
|
{
|
|
313
285
|
"name": "row.drag",
|
|
314
|
-
"description": "
|
|
286
|
+
"description": "表格行拖拽结束发生的事件",
|
|
315
287
|
"detail": {
|
|
316
|
-
"
|
|
288
|
+
"description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
|
|
289
|
+
"type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
|
|
317
290
|
}
|
|
318
291
|
}
|
|
319
292
|
],
|
|
320
293
|
"slots": [],
|
|
321
294
|
"methods": [
|
|
322
295
|
{
|
|
323
|
-
"name": "
|
|
296
|
+
"name": "search",
|
|
324
297
|
"params": [
|
|
325
298
|
{
|
|
326
|
-
"name": "
|
|
327
|
-
"type": "
|
|
299
|
+
"name": "params",
|
|
300
|
+
"type": "{ q: string }"
|
|
328
301
|
}
|
|
329
302
|
],
|
|
330
|
-
"description": "
|
|
331
|
-
"returns": {
|
|
332
|
-
"type": "void"
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"name": "expandAll",
|
|
337
|
-
"params": [],
|
|
338
|
-
"description": "展开所有行",
|
|
303
|
+
"description": "前端搜索",
|
|
339
304
|
"returns": {}
|
|
340
305
|
}
|
|
341
306
|
],
|
|
342
307
|
"parts": [],
|
|
343
|
-
"description": "
|
|
344
|
-
"category": "table"
|
|
345
|
-
"insider": true
|
|
308
|
+
"description": "大型表格",
|
|
309
|
+
"category": "table"
|
|
346
310
|
},
|
|
347
311
|
{
|
|
348
|
-
"name": "eo-
|
|
312
|
+
"name": "eo-table",
|
|
313
|
+
"alias": [
|
|
314
|
+
"advanced.general-table"
|
|
315
|
+
],
|
|
349
316
|
"properties": [
|
|
350
317
|
{
|
|
351
|
-
"name": "
|
|
352
|
-
"description": "
|
|
353
|
-
"default": "
|
|
354
|
-
"type": "string"
|
|
318
|
+
"name": "showCard",
|
|
319
|
+
"description": "是否显示外层卡片",
|
|
320
|
+
"default": "true"
|
|
355
321
|
},
|
|
356
322
|
{
|
|
357
|
-
"name": "
|
|
358
|
-
"description": "
|
|
323
|
+
"name": "rowSelection",
|
|
324
|
+
"description": "表格行是否可选择,具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)",
|
|
359
325
|
"attribute": false,
|
|
360
|
-
"type": "
|
|
326
|
+
"type": "false | TableRowSelection<any>"
|
|
361
327
|
},
|
|
362
328
|
{
|
|
363
|
-
"name": "
|
|
364
|
-
"description": "
|
|
365
|
-
"
|
|
366
|
-
"type": "CellConfig"
|
|
329
|
+
"name": "rowKey",
|
|
330
|
+
"description": "指定每一行的 key,不指定则默认为索引 index。强烈建议设置该属性,否则在某些情况下可能行为不如预期。",
|
|
331
|
+
"type": "string"
|
|
367
332
|
},
|
|
368
333
|
{
|
|
369
|
-
"name": "
|
|
370
|
-
"description": "
|
|
334
|
+
"name": "hiddenColumns",
|
|
335
|
+
"description": "隐藏相应列(输入对应的 dataIndex 或者 key 即可)",
|
|
371
336
|
"attribute": false,
|
|
372
|
-
"type": "
|
|
337
|
+
"type": "Array<string | number>"
|
|
373
338
|
},
|
|
374
339
|
{
|
|
375
|
-
"name": "
|
|
376
|
-
"description": "
|
|
377
|
-
"
|
|
340
|
+
"name": "showSelectInfo",
|
|
341
|
+
"description": "是否显示已选择信息和清除按钮。仅在设置了`rowSelection`时有效。默认不显示",
|
|
342
|
+
"default": "false"
|
|
378
343
|
},
|
|
379
344
|
{
|
|
380
|
-
"name": "
|
|
381
|
-
"description": "
|
|
345
|
+
"name": "filters",
|
|
346
|
+
"description": "表头过滤的过滤项,key 为 column 的 dataIndex,value 为过滤值集合。",
|
|
382
347
|
"attribute": false,
|
|
383
|
-
"type": "
|
|
348
|
+
"type": "Record<string, string[]>"
|
|
384
349
|
},
|
|
385
350
|
{
|
|
386
|
-
"name": "
|
|
387
|
-
"description": "
|
|
388
|
-
"
|
|
351
|
+
"name": "configProps",
|
|
352
|
+
"description": "ant-design 的 Table 相关配置项,具体查阅:[Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
|
|
353
|
+
"attribute": false,
|
|
354
|
+
"type": "any"
|
|
389
355
|
},
|
|
390
356
|
{
|
|
391
357
|
"name": "sort",
|
|
392
|
-
"description": "
|
|
393
|
-
"
|
|
394
|
-
"type": "Sort | Sort[]"
|
|
358
|
+
"description": "被排序列的 dataIndex。通常来自于 url 参数,可以设置成 ${QUERY.sort}。",
|
|
359
|
+
"type": "string | null"
|
|
395
360
|
},
|
|
396
361
|
{
|
|
397
|
-
"name": "
|
|
398
|
-
"description": "
|
|
362
|
+
"name": "order",
|
|
363
|
+
"description": "升序/降序,可以设置成 ${QUERY.order}。",
|
|
399
364
|
"attribute": false,
|
|
400
|
-
"type": "
|
|
365
|
+
"type": "string | number | null"
|
|
401
366
|
},
|
|
402
367
|
{
|
|
403
|
-
"name": "
|
|
404
|
-
"description": "
|
|
368
|
+
"name": "rowDisabledConfig",
|
|
369
|
+
"description": "配置每一行是否禁用,其中 `field` 表示数据源中的字段路径, `value` 表示与其字段比较的值, `operator` 表示两者比较的方法,结果为 `true` 时会禁用当前行, 需要注意的是该配置需要在 `rowSelection: true` 的前提下使用,并且设置 `rowKey` 属性赋予每行唯一的 key,防止顺序变化时造成的错误勾选(如上 demo 所示)",
|
|
405
370
|
"attribute": false,
|
|
406
|
-
"type": "
|
|
371
|
+
"type": "RowDisabledProps | RowDisabledProps[]"
|
|
407
372
|
},
|
|
408
373
|
{
|
|
409
|
-
"name": "
|
|
410
|
-
"description": "
|
|
374
|
+
"name": "expandedRowBrick",
|
|
375
|
+
"description": "自定义行展开的构件 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf)",
|
|
411
376
|
"attribute": false,
|
|
412
|
-
"type": "
|
|
377
|
+
"type": "{\n useBrick?: UseSingleBrickConf;\n }"
|
|
413
378
|
},
|
|
414
379
|
{
|
|
415
|
-
"name": "
|
|
416
|
-
"description": "
|
|
380
|
+
"name": "expandIcon",
|
|
381
|
+
"description": "自定义展开图标。",
|
|
382
|
+
"default": "{collapsedIcon:{lib:'antd',icon:'down',theme:'outlined'},expandedIcon:{lib:'antd',icon:'right',theme:'outlined'}}",
|
|
417
383
|
"attribute": false,
|
|
418
|
-
"type": "
|
|
384
|
+
"type": "{\n collapsedIcon: GeneralIconProps;\n expandedIcon: GeneralIconProps;\n }"
|
|
419
385
|
},
|
|
420
386
|
{
|
|
421
|
-
"name": "
|
|
422
|
-
"description": "
|
|
423
|
-
"
|
|
424
|
-
"
|
|
387
|
+
"name": "expandIconAsCell",
|
|
388
|
+
"description": "展开的图标是否为一个单元格,默认显示在第一列;设置为 false 的时候,可以通过`expandIconColumnIndex`属性设置展开的图标在哪一列",
|
|
389
|
+
"default": "true",
|
|
390
|
+
"attribute": false
|
|
425
391
|
},
|
|
426
392
|
{
|
|
427
|
-
"name": "
|
|
428
|
-
"description": "
|
|
429
|
-
"
|
|
430
|
-
"type": "string"
|
|
393
|
+
"name": "expandIconColumnIndex",
|
|
394
|
+
"description": "展开的图标显示在哪一列,如果没有 rowSelection,默认显示在第一列,否则显示在选择框后面。当`expandIconAsCell`为 false 时,该属性生效。",
|
|
395
|
+
"type": "number"
|
|
431
396
|
},
|
|
432
397
|
{
|
|
433
|
-
"name": "
|
|
434
|
-
"description": "
|
|
398
|
+
"name": "expandRowByClick",
|
|
399
|
+
"description": "通过点击行来展开子行",
|
|
435
400
|
"type": "boolean"
|
|
436
401
|
},
|
|
437
402
|
{
|
|
438
|
-
"name": "
|
|
439
|
-
"description": "
|
|
403
|
+
"name": "optimizedColumns",
|
|
404
|
+
"description": "优化渲染的列(输入对应的 dataIndex),针对配置了 useBrick 的列。当前 antd 在更新 state 的时候,会全量渲染单元格,如果确定某一列在后续操作中不需要重新渲染,例如仅作为展示的单元格,可通过该属性设置以优化性能。注意,在树形表格中,当某一列内包含展开/收起按钮,则不应该设置该列。",
|
|
440
405
|
"attribute": false,
|
|
441
|
-
"type": "
|
|
406
|
+
"type": "Array<string | number>"
|
|
442
407
|
},
|
|
443
408
|
{
|
|
444
|
-
"name": "
|
|
445
|
-
"description": "
|
|
446
|
-
"default": "
|
|
447
|
-
"
|
|
409
|
+
"name": "stripEmptyExpandableChildren",
|
|
410
|
+
"description": "树形数据展示时是否需要去除空数组",
|
|
411
|
+
"default": "false",
|
|
412
|
+
"attribute": false
|
|
448
413
|
},
|
|
449
414
|
{
|
|
450
|
-
"name": "
|
|
451
|
-
"description": "
|
|
452
|
-
"default": "true",
|
|
415
|
+
"name": "defaultExpandAllRows",
|
|
416
|
+
"description": "初始时,是否展开所有行",
|
|
453
417
|
"type": "boolean"
|
|
454
418
|
},
|
|
455
419
|
{
|
|
456
|
-
"name": "
|
|
457
|
-
"description": "
|
|
458
|
-
"
|
|
459
|
-
"attribute": false,
|
|
460
|
-
"type": "TableProps<RecordType>[\"scroll\"]"
|
|
420
|
+
"name": "ellipsisInfo",
|
|
421
|
+
"description": "是否显示省略信息",
|
|
422
|
+
"type": "boolean"
|
|
461
423
|
},
|
|
462
424
|
{
|
|
463
|
-
"name": "
|
|
464
|
-
"description": "
|
|
425
|
+
"name": "expandedRowKeys",
|
|
426
|
+
"description": "展开的行的 rowKey",
|
|
465
427
|
"attribute": false,
|
|
466
|
-
"type": "
|
|
467
|
-
}
|
|
468
|
-
],
|
|
469
|
-
"events": [
|
|
428
|
+
"type": "string[]"
|
|
429
|
+
},
|
|
470
430
|
{
|
|
471
|
-
"name": "
|
|
472
|
-
"description": "
|
|
473
|
-
"
|
|
474
|
-
"description": "改变后的页码及每页条数",
|
|
475
|
-
"type": "{ page: number; pageSize: number }"
|
|
476
|
-
}
|
|
431
|
+
"name": "selectAllChildren",
|
|
432
|
+
"description": "表格树形数据展示的时候,行选择父节点的时候是否同步勾选/取消勾选所有子节点,并且被同步勾选的子节点不能单独取消。注意,该属性必须设置 `rowKey` 属性。",
|
|
433
|
+
"type": "boolean"
|
|
477
434
|
},
|
|
478
435
|
{
|
|
479
|
-
"name": "
|
|
480
|
-
"description": "
|
|
481
|
-
"
|
|
482
|
-
"description": "改变后的页码及每页条数",
|
|
483
|
-
"type": "{\n page: number;\n pageSize: number;\n }"
|
|
484
|
-
}
|
|
436
|
+
"name": "defaultSelectAll",
|
|
437
|
+
"description": "是否默认选择所有行。注意,该属性必须设置 `rowKey` 属性。",
|
|
438
|
+
"type": "boolean"
|
|
485
439
|
},
|
|
486
440
|
{
|
|
487
|
-
"name": "
|
|
488
|
-
"description": "
|
|
489
|
-
"
|
|
490
|
-
|
|
491
|
-
"type": "Sort | Sort[] | undefined"
|
|
492
|
-
}
|
|
441
|
+
"name": "childrenColumnName",
|
|
442
|
+
"description": "指定树形结构的列名",
|
|
443
|
+
"default": "children",
|
|
444
|
+
"attribute": false
|
|
493
445
|
},
|
|
494
446
|
{
|
|
495
|
-
"name": "
|
|
496
|
-
"description": "
|
|
497
|
-
"
|
|
498
|
-
|
|
499
|
-
"type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
|
|
500
|
-
}
|
|
447
|
+
"name": "sortable",
|
|
448
|
+
"description": "是否支持排序。默认开启,当对应列的sorter设置成true时则可排序。sortable为false时则排序都不生效。",
|
|
449
|
+
"default": "true",
|
|
450
|
+
"attribute": false
|
|
501
451
|
},
|
|
502
452
|
{
|
|
503
|
-
"name": "
|
|
504
|
-
"description": "
|
|
505
|
-
"
|
|
506
|
-
"description": "当前行的展开情况及数据",
|
|
507
|
-
"type": "{\n expanded: boolean;\n record: RecordType;\n }"
|
|
508
|
-
}
|
|
453
|
+
"name": "frontSearch",
|
|
454
|
+
"description": "是否前端进行搜索,配合`presentational-bricks.brick-input`使用",
|
|
455
|
+
"type": "boolean"
|
|
509
456
|
},
|
|
510
457
|
{
|
|
511
|
-
"name": "
|
|
512
|
-
"description": "
|
|
513
|
-
"
|
|
514
|
-
"description": "所有展开行的 key",
|
|
515
|
-
"type": "(string | number)[]"
|
|
516
|
-
}
|
|
458
|
+
"name": "frontSearchQuery",
|
|
459
|
+
"description": "前端搜索参数",
|
|
460
|
+
"default": "\"\""
|
|
517
461
|
},
|
|
518
462
|
{
|
|
519
|
-
"name": "
|
|
520
|
-
"description": "
|
|
521
|
-
"
|
|
522
|
-
"description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
|
|
523
|
-
"type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
],
|
|
527
|
-
"slots": [],
|
|
528
|
-
"methods": [
|
|
529
|
-
{
|
|
530
|
-
"name": "search",
|
|
531
|
-
"params": [
|
|
532
|
-
{
|
|
533
|
-
"name": "params",
|
|
534
|
-
"type": "{ q: string }"
|
|
535
|
-
}
|
|
536
|
-
],
|
|
537
|
-
"description": "前端搜索",
|
|
538
|
-
"returns": {}
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"parts": [],
|
|
542
|
-
"description": "大型表格",
|
|
543
|
-
"category": "table"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"name": "eo-cascader",
|
|
547
|
-
"alias": [
|
|
548
|
-
"advanced.general-cascader"
|
|
549
|
-
],
|
|
550
|
-
"properties": [
|
|
551
|
-
{
|
|
552
|
-
"name": "name",
|
|
553
|
-
"type": "string"
|
|
463
|
+
"name": "exactSearch",
|
|
464
|
+
"description": "是否精确搜索",
|
|
465
|
+
"type": "boolean"
|
|
554
466
|
},
|
|
555
467
|
{
|
|
556
|
-
"name": "
|
|
557
|
-
"
|
|
468
|
+
"name": "frontSearchFilterKeys",
|
|
469
|
+
"description": "进行前端搜索的字段,支持嵌套的写法如[\"name\",\"value.a\"],不配置的时候默认为对所有 columns 的 dataIndex[]进行前端搜索",
|
|
470
|
+
"attribute": false,
|
|
471
|
+
"type": "string[]"
|
|
558
472
|
},
|
|
559
473
|
{
|
|
560
|
-
"name": "
|
|
561
|
-
"
|
|
474
|
+
"name": "page",
|
|
475
|
+
"description": "页码。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 page;前台搜索的时候,一般配置成 \"${query.page=1|number}\"",
|
|
476
|
+
"type": "number"
|
|
562
477
|
},
|
|
563
478
|
{
|
|
564
|
-
"name": "
|
|
565
|
-
"
|
|
566
|
-
"type": "
|
|
479
|
+
"name": "pageSize",
|
|
480
|
+
"description": "页码条数。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 pageSize/page_size;前台搜索的时候,一般配置成 \"${query.pageSize=10|number}\"",
|
|
481
|
+
"type": "number"
|
|
567
482
|
},
|
|
568
483
|
{
|
|
569
|
-
"name": "
|
|
484
|
+
"name": "scrollConfigs",
|
|
485
|
+
"description": "",
|
|
486
|
+
"default": "{ x: true }",
|
|
570
487
|
"attribute": false,
|
|
571
|
-
"type": "
|
|
572
|
-
"default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }"
|
|
488
|
+
"type": "TableProps<unknown>[\"scroll\"]"
|
|
573
489
|
},
|
|
574
490
|
{
|
|
575
|
-
"name": "
|
|
576
|
-
"
|
|
577
|
-
"
|
|
491
|
+
"name": "qField",
|
|
492
|
+
"description": "把过滤条件更新到 url 时的字段名",
|
|
493
|
+
"default": "\"q\""
|
|
578
494
|
},
|
|
579
495
|
{
|
|
580
|
-
"name": "
|
|
581
|
-
"
|
|
496
|
+
"name": "tableDraggable",
|
|
497
|
+
"description": "表格行是否可拖拽,注意,树形数据的表格不支持该功能",
|
|
498
|
+
"type": "boolean"
|
|
582
499
|
},
|
|
583
500
|
{
|
|
584
|
-
"name": "
|
|
501
|
+
"name": "zebraPattern",
|
|
502
|
+
"description": "是否展示斑马纹",
|
|
585
503
|
"type": "boolean"
|
|
586
504
|
},
|
|
587
505
|
{
|
|
588
|
-
"name": "
|
|
506
|
+
"name": "storeCheckedByUrl",
|
|
507
|
+
"description": "翻页时是否记住之前选中的项。注意,选中项的rowKey将保存在url中,如果不设置rowKey,该设置不生效。如果选择太多可能会造成url过长,请谨慎使用",
|
|
589
508
|
"type": "boolean"
|
|
590
509
|
},
|
|
591
510
|
{
|
|
592
|
-
"name": "
|
|
593
|
-
"
|
|
594
|
-
"default": "
|
|
511
|
+
"name": "extraRows",
|
|
512
|
+
"description": "额外的行,通常为跨页勾选时,不在当前页的行",
|
|
513
|
+
"default": "[]",
|
|
514
|
+
"attribute": false,
|
|
515
|
+
"type": "Record<string, unknown>[]"
|
|
595
516
|
},
|
|
596
517
|
{
|
|
597
|
-
"name": "
|
|
598
|
-
"
|
|
599
|
-
"
|
|
518
|
+
"name": "autoSelectParentWhenAllChildrenSelected",
|
|
519
|
+
"description": "当所有子节点选中时,自动选中父节点",
|
|
520
|
+
"type": "boolean"
|
|
600
521
|
},
|
|
601
522
|
{
|
|
602
|
-
"name": "
|
|
603
|
-
"
|
|
604
|
-
"type": "
|
|
523
|
+
"name": "thTransparent",
|
|
524
|
+
"description": "表格表头是否透明",
|
|
525
|
+
"type": "boolean"
|
|
605
526
|
},
|
|
606
527
|
{
|
|
607
|
-
"name": "
|
|
608
|
-
"
|
|
609
|
-
"default": "
|
|
528
|
+
"name": "showHeader",
|
|
529
|
+
"description": "是否显示表头",
|
|
530
|
+
"default": "true"
|
|
610
531
|
},
|
|
611
532
|
{
|
|
612
|
-
"name": "
|
|
613
|
-
"
|
|
614
|
-
"
|
|
533
|
+
"name": "pagination",
|
|
534
|
+
"description": "是否显示分页",
|
|
535
|
+
"attribute": false,
|
|
536
|
+
"type": "false | TablePaginationConfig"
|
|
615
537
|
},
|
|
616
538
|
{
|
|
617
539
|
"name": "size",
|
|
618
|
-
"
|
|
540
|
+
"description": "表格大小(antd原生size)",
|
|
541
|
+
"type": "SizeType | \"x-small\""
|
|
619
542
|
},
|
|
620
543
|
{
|
|
621
|
-
"name": "
|
|
622
|
-
"
|
|
623
|
-
"
|
|
544
|
+
"name": "type",
|
|
545
|
+
"description": "选框类型(单选/多选)",
|
|
546
|
+
"attribute": false,
|
|
547
|
+
"type": "RowSelectionType"
|
|
624
548
|
},
|
|
625
549
|
{
|
|
626
|
-
"name": "
|
|
627
|
-
"
|
|
628
|
-
"
|
|
550
|
+
"name": "shouldUpdateUrlParams",
|
|
551
|
+
"description": "是否更新 url 参数。设置为否之后,如果是后台进行分页/排序等功能,则需要结合事件进行编排。如果是前台进行分页/排序,则不需要。",
|
|
552
|
+
"default": "true"
|
|
629
553
|
},
|
|
630
554
|
{
|
|
631
|
-
"name": "
|
|
555
|
+
"name": "shouldRenderWhenUrlParamsUpdate",
|
|
556
|
+
"description": "更新 url 参数时是否触发页面重新渲染。仅在`shouldUpdateUrlParams`为true时有效。",
|
|
557
|
+
"default": "true"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "selectedRowKeys",
|
|
561
|
+
"description": "指定选中项的 key 数组",
|
|
562
|
+
"default": "[]",
|
|
632
563
|
"attribute": false,
|
|
633
|
-
"type": "
|
|
564
|
+
"type": "React.Key[]"
|
|
634
565
|
}
|
|
635
566
|
],
|
|
636
567
|
"events": [
|
|
637
568
|
{
|
|
638
|
-
"name": "
|
|
639
|
-
"description": "",
|
|
569
|
+
"name": "page.update",
|
|
570
|
+
"description": "页码变化,pagePath 可在 fields.page 中设置,默认为 page",
|
|
640
571
|
"detail": {
|
|
641
|
-
"
|
|
642
|
-
|
|
572
|
+
"type": "Record<string, number>"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "filter.update",
|
|
577
|
+
"description": "每页条数变化 ,pagePath 可在 fields.page 中设置,pageSizePath 可在 fields.pageSize 中设置,默认为 pageSize",
|
|
578
|
+
"detail": {
|
|
579
|
+
"type": "Record<string, number>"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "select.update",
|
|
584
|
+
"description": "勾选框变化,detail 中为所选的行数据",
|
|
585
|
+
"detail": {
|
|
586
|
+
"type": "Record<string, any>[]"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "select.row.keys.update",
|
|
591
|
+
"description": "勾选框变化,detail 中为所选的行key集合",
|
|
592
|
+
"detail": {
|
|
593
|
+
"type": "string[]"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "sort.update",
|
|
598
|
+
"description": "排序变化,detail 中的 sort 为对应排序列的 key/dataIndex,order 为升序/降序",
|
|
599
|
+
"detail": {
|
|
600
|
+
"type": "{\n sort: string;\n order: string | number;\n }"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "row.expand",
|
|
605
|
+
"description": "点击展开图标时触发的事件,事件详情中`expanded`为是否展开,`record`被点击的行信息",
|
|
606
|
+
"detail": {
|
|
607
|
+
"type": "{\n expanded: boolean;\n record: Record<string, any>;\n }"
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "expand.rows.change",
|
|
612
|
+
"description": "展开的行变化时触发的事件,事件详情为当前展开的所有行的`rowKey`集合",
|
|
613
|
+
"detail": {
|
|
614
|
+
"type": "{\n expandedRows: React.Key[];\n }"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "row.drag",
|
|
619
|
+
"description": "表格行拖拽结束发生的事件,事件详情为拖拽后重新排序的所有行数据",
|
|
620
|
+
"detail": {
|
|
621
|
+
"type": "{\n data: Record<string, any>[];\n }"
|
|
643
622
|
}
|
|
644
623
|
}
|
|
645
624
|
],
|
|
646
625
|
"slots": [],
|
|
647
|
-
"methods": [
|
|
626
|
+
"methods": [
|
|
627
|
+
{
|
|
628
|
+
"name": "filterSourceData",
|
|
629
|
+
"params": [
|
|
630
|
+
{
|
|
631
|
+
"name": "event",
|
|
632
|
+
"type": "CustomEvent"
|
|
633
|
+
}
|
|
634
|
+
],
|
|
635
|
+
"description": "搜索过滤",
|
|
636
|
+
"returns": {
|
|
637
|
+
"type": "void"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "expandAll",
|
|
642
|
+
"params": [],
|
|
643
|
+
"description": "展开所有行",
|
|
644
|
+
"returns": {}
|
|
645
|
+
}
|
|
646
|
+
],
|
|
648
647
|
"parts": [],
|
|
649
|
-
"description": "
|
|
650
|
-
"category": "
|
|
648
|
+
"description": "通用表格构件",
|
|
649
|
+
"category": "table",
|
|
650
|
+
"insider": true
|
|
651
651
|
},
|
|
652
652
|
{
|
|
653
653
|
"name": "eo-workbench-layout",
|