@next-bricks/advanced 0.42.2 → 0.42.3
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 +14 -14
- package/dist/chunks/2073.79aac720.js +2 -0
- package/dist/chunks/{2073.5a740b29.js.map → 2073.79aac720.js.map} +1 -1
- package/dist/chunks/5479.f74655c0.js +2 -0
- package/dist/chunks/5479.f74655c0.js.map +1 -0
- package/dist/chunks/{main.f64dbe7e.js → main.129df64e.js} +2 -2
- package/dist/chunks/{main.f64dbe7e.js.map → main.129df64e.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/{index.95900fff.js → index.ba5554a8.js} +2 -2
- package/dist/{index.95900fff.js.map → index.ba5554a8.js.map} +1 -1
- package/dist/manifest.json +497 -497
- package/dist/types.json +254 -254
- package/package.json +2 -2
- package/dist/chunks/2073.5a740b29.js +0 -2
- package/dist/chunks/5479.5296430c.js +0 -2
- package/dist/chunks/5479.5296430c.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -4,455 +4,323 @@
|
|
|
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": "
|
|
129
|
-
}
|
|
92
|
+
"name": "cascaderStyle",
|
|
93
|
+
"attribute": false,
|
|
94
|
+
"type": "CSSProperties"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"events": [
|
|
130
98
|
{
|
|
131
|
-
"name": "
|
|
132
|
-
"description": "
|
|
133
|
-
"
|
|
134
|
-
|
|
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": [
|
|
135
116
|
{
|
|
136
|
-
"name": "
|
|
137
|
-
"description": "
|
|
138
|
-
"default": "
|
|
139
|
-
"
|
|
117
|
+
"name": "rowKey",
|
|
118
|
+
"description": "指定表格行的 key",
|
|
119
|
+
"default": "\"key\"",
|
|
120
|
+
"type": "string"
|
|
140
121
|
},
|
|
141
122
|
{
|
|
142
|
-
"name": "
|
|
143
|
-
"description": "
|
|
144
|
-
"
|
|
145
|
-
"
|
|
123
|
+
"name": "columns",
|
|
124
|
+
"description": "列定义",
|
|
125
|
+
"attribute": false,
|
|
126
|
+
"type": "Column[]"
|
|
146
127
|
},
|
|
147
128
|
{
|
|
148
|
-
"name": "
|
|
149
|
-
"description": "
|
|
150
|
-
"
|
|
129
|
+
"name": "cell",
|
|
130
|
+
"description": "单元格",
|
|
131
|
+
"attribute": false,
|
|
132
|
+
"type": "CellConfig"
|
|
151
133
|
},
|
|
152
134
|
{
|
|
153
|
-
"name": "
|
|
154
|
-
"description": "
|
|
155
|
-
"
|
|
135
|
+
"name": "dataSource",
|
|
136
|
+
"description": "数据源",
|
|
137
|
+
"attribute": false,
|
|
138
|
+
"type": "DataSource"
|
|
156
139
|
},
|
|
157
140
|
{
|
|
158
|
-
"name": "
|
|
159
|
-
"description": "
|
|
141
|
+
"name": "frontSearch",
|
|
142
|
+
"description": "是否前端搜索",
|
|
160
143
|
"type": "boolean"
|
|
161
144
|
},
|
|
162
145
|
{
|
|
163
|
-
"name": "
|
|
164
|
-
"description": "
|
|
146
|
+
"name": "pagination",
|
|
147
|
+
"description": "分页配置",
|
|
165
148
|
"attribute": false,
|
|
166
|
-
"type": "
|
|
149
|
+
"type": "PaginationType"
|
|
167
150
|
},
|
|
168
151
|
{
|
|
169
|
-
"name": "
|
|
170
|
-
"description": "
|
|
171
|
-
"type": "
|
|
152
|
+
"name": "loading",
|
|
153
|
+
"description": "显示加载中状态",
|
|
154
|
+
"type": "boolean"
|
|
172
155
|
},
|
|
173
156
|
{
|
|
174
|
-
"name": "
|
|
175
|
-
"description": "
|
|
176
|
-
"type": "
|
|
157
|
+
"name": "multiSort",
|
|
158
|
+
"description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
|
|
159
|
+
"type": "boolean"
|
|
177
160
|
},
|
|
178
161
|
{
|
|
179
|
-
"name": "
|
|
180
|
-
"description": "",
|
|
181
|
-
"default": "{ x: true }",
|
|
162
|
+
"name": "sort",
|
|
163
|
+
"description": "排序信息",
|
|
182
164
|
"attribute": false,
|
|
183
|
-
"type": "
|
|
165
|
+
"type": "Sort | Sort[]"
|
|
184
166
|
},
|
|
185
167
|
{
|
|
186
|
-
"name": "
|
|
187
|
-
"description": "
|
|
188
|
-
"
|
|
168
|
+
"name": "rowSelection",
|
|
169
|
+
"description": "表格行可选择配置",
|
|
170
|
+
"attribute": false,
|
|
171
|
+
"type": "RowSelectionType"
|
|
189
172
|
},
|
|
190
173
|
{
|
|
191
|
-
"name": "
|
|
192
|
-
"description": "
|
|
193
|
-
"
|
|
174
|
+
"name": "selectedRowKeys",
|
|
175
|
+
"description": "选中项的 key",
|
|
176
|
+
"attribute": false,
|
|
177
|
+
"type": "(string | number)[]"
|
|
194
178
|
},
|
|
195
179
|
{
|
|
196
|
-
"name": "
|
|
197
|
-
"description": "
|
|
198
|
-
"
|
|
180
|
+
"name": "hiddenColumns",
|
|
181
|
+
"description": "隐藏的列(输入对应的 column.key)",
|
|
182
|
+
"attribute": false,
|
|
183
|
+
"type": "(string | number)[]"
|
|
199
184
|
},
|
|
200
185
|
{
|
|
201
|
-
"name": "
|
|
202
|
-
"description": "
|
|
203
|
-
"
|
|
186
|
+
"name": "expandable",
|
|
187
|
+
"description": "表格行展开配置",
|
|
188
|
+
"attribute": false,
|
|
189
|
+
"type": "ExpandableType"
|
|
204
190
|
},
|
|
205
191
|
{
|
|
206
|
-
"name": "
|
|
207
|
-
"description": "
|
|
208
|
-
"default": "[]",
|
|
192
|
+
"name": "expandedRowKeys",
|
|
193
|
+
"description": "展开项的 key",
|
|
209
194
|
"attribute": false,
|
|
210
|
-
"type": "
|
|
195
|
+
"type": "(string | number)[]"
|
|
211
196
|
},
|
|
212
197
|
{
|
|
213
|
-
"name": "
|
|
214
|
-
"description": "
|
|
215
|
-
"
|
|
198
|
+
"name": "childrenColumnName",
|
|
199
|
+
"description": "树形结构的列名",
|
|
200
|
+
"default": "\"children\"",
|
|
201
|
+
"type": "string"
|
|
216
202
|
},
|
|
217
203
|
{
|
|
218
|
-
"name": "
|
|
219
|
-
"description": "
|
|
204
|
+
"name": "rowDraggable",
|
|
205
|
+
"description": "表格行拖拽配置",
|
|
220
206
|
"type": "boolean"
|
|
221
207
|
},
|
|
222
208
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"description": "
|
|
225
|
-
"default": "true"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "pagination",
|
|
229
|
-
"description": "是否显示分页",
|
|
209
|
+
"name": "searchFields",
|
|
210
|
+
"description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
|
|
230
211
|
"attribute": false,
|
|
231
|
-
"type": "
|
|
212
|
+
"type": "(string | string[])[]"
|
|
232
213
|
},
|
|
233
214
|
{
|
|
234
215
|
"name": "size",
|
|
235
|
-
"description": "
|
|
236
|
-
"
|
|
216
|
+
"description": "表格大小",
|
|
217
|
+
"default": "\"large\"",
|
|
218
|
+
"type": "TableProps<RecordType>[\"size\"]"
|
|
237
219
|
},
|
|
238
220
|
{
|
|
239
|
-
"name": "
|
|
240
|
-
"description": "
|
|
241
|
-
"
|
|
242
|
-
"type": "
|
|
221
|
+
"name": "showHeader",
|
|
222
|
+
"description": "是否显示表头",
|
|
223
|
+
"default": "true",
|
|
224
|
+
"type": "boolean"
|
|
243
225
|
},
|
|
244
226
|
{
|
|
245
|
-
"name": "
|
|
246
|
-
"description": "
|
|
247
|
-
"
|
|
227
|
+
"name": "bordered",
|
|
228
|
+
"description": "是否显示边框",
|
|
229
|
+
"type": "boolean"
|
|
248
230
|
},
|
|
249
231
|
{
|
|
250
|
-
"name": "
|
|
251
|
-
"description": "
|
|
252
|
-
"default": "true"
|
|
232
|
+
"name": "scrollConfig",
|
|
233
|
+
"description": "滚动配置",
|
|
234
|
+
"default": "{ x: true }",
|
|
235
|
+
"attribute": false,
|
|
236
|
+
"type": "TableProps<RecordType>[\"scroll\"]"
|
|
253
237
|
},
|
|
254
238
|
{
|
|
255
|
-
"name": "
|
|
256
|
-
"description": "
|
|
257
|
-
"default": "[]",
|
|
239
|
+
"name": "optimizedColumns",
|
|
240
|
+
"description": "优化渲染的列(输入对应的 column.key)",
|
|
258
241
|
"attribute": false,
|
|
259
|
-
"type": "
|
|
242
|
+
"type": "(string | number)[]"
|
|
260
243
|
}
|
|
261
244
|
],
|
|
262
245
|
"events": [
|
|
263
246
|
{
|
|
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",
|
|
247
|
+
"name": "page.change",
|
|
248
|
+
"description": "page 或 pageSize 改变的回调",
|
|
273
249
|
"detail": {
|
|
274
|
-
"
|
|
250
|
+
"description": "改变后的页码及每页条数",
|
|
251
|
+
"type": "{ page: number; pageSize: number }"
|
|
275
252
|
}
|
|
276
253
|
},
|
|
277
254
|
{
|
|
278
|
-
"name": "
|
|
279
|
-
"description": "
|
|
255
|
+
"name": "page.size.change",
|
|
256
|
+
"description": "pageSize 变化的回调",
|
|
257
|
+
"deprecated": "统一用 `page.change` 事件",
|
|
280
258
|
"detail": {
|
|
281
|
-
"
|
|
259
|
+
"description": "改变后的页码及每页条数",
|
|
260
|
+
"type": "{\n page: number;\n pageSize: number;\n }"
|
|
282
261
|
}
|
|
283
262
|
},
|
|
284
263
|
{
|
|
285
|
-
"name": "
|
|
286
|
-
"description": "
|
|
264
|
+
"name": "sort.change",
|
|
265
|
+
"description": "排序变化的回调",
|
|
287
266
|
"detail": {
|
|
288
|
-
"
|
|
267
|
+
"description": "当前排序的信息",
|
|
268
|
+
"type": "Sort | Sort[] | undefined"
|
|
289
269
|
}
|
|
290
270
|
},
|
|
291
271
|
{
|
|
292
|
-
"name": "
|
|
293
|
-
"description": "
|
|
272
|
+
"name": "row.select",
|
|
273
|
+
"description": "行选中项发生变化时的回调",
|
|
294
274
|
"detail": {
|
|
295
|
-
"
|
|
275
|
+
"description": "改变后的 rowKey 及行数据",
|
|
276
|
+
"type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
|
|
296
277
|
}
|
|
297
278
|
},
|
|
298
279
|
{
|
|
299
280
|
"name": "row.expand",
|
|
300
|
-
"description": "
|
|
281
|
+
"description": "点击展开图标时触发",
|
|
301
282
|
"detail": {
|
|
302
|
-
"
|
|
283
|
+
"description": "当前行的展开情况及数据",
|
|
284
|
+
"type": "{\n expanded: boolean;\n record: RecordType;\n }"
|
|
303
285
|
}
|
|
304
286
|
},
|
|
305
287
|
{
|
|
306
|
-
"name": "
|
|
307
|
-
"description": "
|
|
288
|
+
"name": "expanded.rows.change",
|
|
289
|
+
"description": "展开的行变化时触发",
|
|
308
290
|
"detail": {
|
|
309
|
-
"
|
|
291
|
+
"description": "所有展开行的 key",
|
|
292
|
+
"type": "(string | number)[]"
|
|
310
293
|
}
|
|
311
294
|
},
|
|
312
295
|
{
|
|
313
296
|
"name": "row.drag",
|
|
314
|
-
"description": "
|
|
297
|
+
"description": "表格行拖拽结束发生的事件",
|
|
315
298
|
"detail": {
|
|
316
|
-
"
|
|
299
|
+
"description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
|
|
300
|
+
"type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
|
|
317
301
|
}
|
|
318
302
|
}
|
|
319
303
|
],
|
|
320
304
|
"slots": [],
|
|
321
305
|
"methods": [
|
|
322
306
|
{
|
|
323
|
-
"name": "
|
|
307
|
+
"name": "search",
|
|
324
308
|
"params": [
|
|
325
309
|
{
|
|
326
|
-
"name": "
|
|
327
|
-
"type": "
|
|
310
|
+
"name": "params",
|
|
311
|
+
"type": "{ q: string }"
|
|
328
312
|
}
|
|
329
313
|
],
|
|
330
|
-
"description": "
|
|
331
|
-
"returns": {
|
|
332
|
-
"type": "void"
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"name": "expandAll",
|
|
337
|
-
"params": [],
|
|
338
|
-
"description": "展开所有行",
|
|
314
|
+
"description": "前端搜索",
|
|
339
315
|
"returns": {}
|
|
340
316
|
}
|
|
341
317
|
],
|
|
342
318
|
"parts": [],
|
|
343
|
-
"description": "
|
|
344
|
-
"category": "table"
|
|
345
|
-
"insider": true
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"name": "eo-cascader",
|
|
349
|
-
"alias": [
|
|
350
|
-
"advanced.general-cascader"
|
|
351
|
-
],
|
|
352
|
-
"properties": [
|
|
353
|
-
{
|
|
354
|
-
"name": "name",
|
|
355
|
-
"type": "string"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"name": "label",
|
|
359
|
-
"type": "string"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"name": "required",
|
|
363
|
-
"type": "boolean"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"name": "options",
|
|
367
|
-
"attribute": false,
|
|
368
|
-
"type": "AntdCascaderProps[\"options\"]"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"name": "fieldNames",
|
|
372
|
-
"attribute": false,
|
|
373
|
-
"type": "AntdCascaderProps[\"fieldNames\"]",
|
|
374
|
-
"default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"name": "value",
|
|
378
|
-
"attribute": false,
|
|
379
|
-
"type": "AntdCascaderProps[\"value\"]"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"name": "placeholder",
|
|
383
|
-
"type": "string"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "multiple",
|
|
387
|
-
"type": "boolean"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"name": "disabled",
|
|
391
|
-
"type": "boolean"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
"name": "allowClear",
|
|
395
|
-
"type": "boolean",
|
|
396
|
-
"default": "true"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
"name": "showSearch",
|
|
400
|
-
"type": "boolean",
|
|
401
|
-
"default": "true"
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"name": "suffixIcon",
|
|
405
|
-
"attribute": false,
|
|
406
|
-
"type": "GeneralIconProps"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"name": "expandTrigger",
|
|
410
|
-
"type": "AntdCascaderProps[\"expandTrigger\"]",
|
|
411
|
-
"default": "\"click\""
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
"name": "popupPlacement",
|
|
415
|
-
"type": "AntdCascaderProps[\"placement\"]",
|
|
416
|
-
"default": "\"bottomLeft\""
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"name": "size",
|
|
420
|
-
"type": "AntdCascaderProps[\"size\"]"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"name": "limit",
|
|
424
|
-
"type": "number",
|
|
425
|
-
"default": "50"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"name": "maxTagCount",
|
|
429
|
-
"attribute": false,
|
|
430
|
-
"type": "number | \"responsive\""
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"name": "cascaderStyle",
|
|
434
|
-
"attribute": false,
|
|
435
|
-
"type": "CSSProperties"
|
|
436
|
-
}
|
|
437
|
-
],
|
|
438
|
-
"events": [
|
|
439
|
-
{
|
|
440
|
-
"name": "cascader.change",
|
|
441
|
-
"description": "",
|
|
442
|
-
"detail": {
|
|
443
|
-
"description": "{ value: AntdCascaderProps[\"value\"], selectedOptions: DefaultOptionType[] | DefaultOptionType[][] }",
|
|
444
|
-
"type": "{\n value: AntdCascaderProps[\"value\"];\n selectedOptions: DefaultOptionType[] | DefaultOptionType[][];\n }"
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
],
|
|
448
|
-
"slots": [],
|
|
449
|
-
"methods": [],
|
|
450
|
-
"parts": [],
|
|
451
|
-
"description": "级联选择器",
|
|
452
|
-
"category": "form-input-basic"
|
|
319
|
+
"description": "大型表格",
|
|
320
|
+
"category": "table"
|
|
453
321
|
},
|
|
454
322
|
{
|
|
455
|
-
"name": "eo-workbench-layout",
|
|
323
|
+
"name": "eo-workbench-layout-v2",
|
|
456
324
|
"properties": [
|
|
457
325
|
{
|
|
458
326
|
"name": "cardTitle",
|
|
@@ -467,6 +335,11 @@
|
|
|
467
335
|
"attribute": false,
|
|
468
336
|
"type": "Layout[]"
|
|
469
337
|
},
|
|
338
|
+
{
|
|
339
|
+
"name": "toolbarBricks",
|
|
340
|
+
"attribute": false,
|
|
341
|
+
"type": "{\n useBrick: UseSingleBrickConf[];\n }"
|
|
342
|
+
},
|
|
470
343
|
{
|
|
471
344
|
"name": "componentList",
|
|
472
345
|
"attribute": false,
|
|
@@ -514,287 +387,348 @@
|
|
|
514
387
|
}
|
|
515
388
|
],
|
|
516
389
|
"parts": [],
|
|
517
|
-
"description": "工作台布局"
|
|
518
|
-
"deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
|
|
390
|
+
"description": "工作台布局V2,未使用shadow dom"
|
|
519
391
|
},
|
|
520
392
|
{
|
|
521
|
-
"name": "eo-
|
|
393
|
+
"name": "eo-table",
|
|
394
|
+
"alias": [
|
|
395
|
+
"advanced.general-table"
|
|
396
|
+
],
|
|
522
397
|
"properties": [
|
|
398
|
+
{
|
|
399
|
+
"name": "showCard",
|
|
400
|
+
"description": "是否显示外层卡片",
|
|
401
|
+
"default": "true"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "rowSelection",
|
|
405
|
+
"description": "表格行是否可选择,具体查阅:[rowSelection](https://ant.design/components/table-cn/#rowSelection)",
|
|
406
|
+
"attribute": false,
|
|
407
|
+
"type": "false | TableRowSelection<any>"
|
|
408
|
+
},
|
|
523
409
|
{
|
|
524
410
|
"name": "rowKey",
|
|
525
|
-
"description": "
|
|
526
|
-
"default": "\"key\"",
|
|
411
|
+
"description": "指定每一行的 key,不指定则默认为索引 index。强烈建议设置该属性,否则在某些情况下可能行为不如预期。",
|
|
527
412
|
"type": "string"
|
|
528
413
|
},
|
|
529
414
|
{
|
|
530
|
-
"name": "
|
|
531
|
-
"description": "
|
|
415
|
+
"name": "hiddenColumns",
|
|
416
|
+
"description": "隐藏相应列(输入对应的 dataIndex 或者 key 即可)",
|
|
532
417
|
"attribute": false,
|
|
533
|
-
"type": "
|
|
418
|
+
"type": "Array<string | number>"
|
|
534
419
|
},
|
|
535
420
|
{
|
|
536
|
-
"name": "
|
|
537
|
-
"description": "
|
|
421
|
+
"name": "showSelectInfo",
|
|
422
|
+
"description": "是否显示已选择信息和清除按钮。仅在设置了`rowSelection`时有效。默认不显示",
|
|
423
|
+
"default": "false"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "filters",
|
|
427
|
+
"description": "表头过滤的过滤项,key 为 column 的 dataIndex,value 为过滤值集合。",
|
|
538
428
|
"attribute": false,
|
|
539
|
-
"type": "
|
|
429
|
+
"type": "Record<string, string[]>"
|
|
540
430
|
},
|
|
541
431
|
{
|
|
542
|
-
"name": "
|
|
543
|
-
"description": "
|
|
432
|
+
"name": "configProps",
|
|
433
|
+
"description": "ant-design 的 Table 相关配置项,具体查阅:[Table](https://ant.design/components/table-cn/#Table),其中分页配置和行选择配值在构件中设置了常用的默认配置,也可自行覆盖,具体描述见下表",
|
|
544
434
|
"attribute": false,
|
|
545
|
-
"type": "
|
|
435
|
+
"type": "any"
|
|
546
436
|
},
|
|
547
437
|
{
|
|
548
|
-
"name": "
|
|
549
|
-
"description": "
|
|
438
|
+
"name": "sort",
|
|
439
|
+
"description": "被排序列的 dataIndex。通常来自于 url 参数,可以设置成 ${QUERY.sort}。",
|
|
440
|
+
"type": "string | null"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "order",
|
|
444
|
+
"description": "升序/降序,可以设置成 ${QUERY.order}。",
|
|
445
|
+
"attribute": false,
|
|
446
|
+
"type": "string | number | null"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "rowDisabledConfig",
|
|
450
|
+
"description": "配置每一行是否禁用,其中 `field` 表示数据源中的字段路径, `value` 表示与其字段比较的值, `operator` 表示两者比较的方法,结果为 `true` 时会禁用当前行, 需要注意的是该配置需要在 `rowSelection: true` 的前提下使用,并且设置 `rowKey` 属性赋予每行唯一的 key,防止顺序变化时造成的错误勾选(如上 demo 所示)",
|
|
451
|
+
"attribute": false,
|
|
452
|
+
"type": "RowDisabledProps | RowDisabledProps[]"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"name": "expandedRowBrick",
|
|
456
|
+
"description": "自定义行展开的构件 [UseBrickConf](/next-docs/docs/api-reference/brick-types.usesinglebrickconf)",
|
|
457
|
+
"attribute": false,
|
|
458
|
+
"type": "{\n useBrick?: UseSingleBrickConf;\n }"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "expandIcon",
|
|
462
|
+
"description": "自定义展开图标。",
|
|
463
|
+
"default": "{collapsedIcon:{lib:'antd',icon:'down',theme:'outlined'},expandedIcon:{lib:'antd',icon:'right',theme:'outlined'}}",
|
|
464
|
+
"attribute": false,
|
|
465
|
+
"type": "{\n collapsedIcon: GeneralIconProps;\n expandedIcon: GeneralIconProps;\n }"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "expandIconAsCell",
|
|
469
|
+
"description": "展开的图标是否为一个单元格,默认显示在第一列;设置为 false 的时候,可以通过`expandIconColumnIndex`属性设置展开的图标在哪一列",
|
|
470
|
+
"default": "true",
|
|
471
|
+
"attribute": false
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "expandIconColumnIndex",
|
|
475
|
+
"description": "展开的图标显示在哪一列,如果没有 rowSelection,默认显示在第一列,否则显示在选择框后面。当`expandIconAsCell`为 false 时,该属性生效。",
|
|
476
|
+
"type": "number"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "expandRowByClick",
|
|
480
|
+
"description": "通过点击行来展开子行",
|
|
550
481
|
"type": "boolean"
|
|
551
482
|
},
|
|
552
483
|
{
|
|
553
|
-
"name": "
|
|
554
|
-
"description": "
|
|
484
|
+
"name": "optimizedColumns",
|
|
485
|
+
"description": "优化渲染的列(输入对应的 dataIndex),针对配置了 useBrick 的列。当前 antd 在更新 state 的时候,会全量渲染单元格,如果确定某一列在后续操作中不需要重新渲染,例如仅作为展示的单元格,可通过该属性设置以优化性能。注意,在树形表格中,当某一列内包含展开/收起按钮,则不应该设置该列。",
|
|
555
486
|
"attribute": false,
|
|
556
|
-
"type": "
|
|
487
|
+
"type": "Array<string | number>"
|
|
557
488
|
},
|
|
558
489
|
{
|
|
559
|
-
"name": "
|
|
560
|
-
"description": "
|
|
490
|
+
"name": "stripEmptyExpandableChildren",
|
|
491
|
+
"description": "树形数据展示时是否需要去除空数组",
|
|
492
|
+
"default": "false",
|
|
493
|
+
"attribute": false
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "defaultExpandAllRows",
|
|
497
|
+
"description": "初始时,是否展开所有行",
|
|
561
498
|
"type": "boolean"
|
|
562
499
|
},
|
|
563
500
|
{
|
|
564
|
-
"name": "
|
|
565
|
-
"description": "
|
|
501
|
+
"name": "ellipsisInfo",
|
|
502
|
+
"description": "是否显示省略信息",
|
|
566
503
|
"type": "boolean"
|
|
567
504
|
},
|
|
568
505
|
{
|
|
569
|
-
"name": "
|
|
570
|
-
"description": "
|
|
506
|
+
"name": "expandedRowKeys",
|
|
507
|
+
"description": "展开的行的 rowKey",
|
|
571
508
|
"attribute": false,
|
|
572
|
-
"type": "
|
|
509
|
+
"type": "string[]"
|
|
573
510
|
},
|
|
574
511
|
{
|
|
575
|
-
"name": "
|
|
576
|
-
"description": "
|
|
577
|
-
"
|
|
578
|
-
"type": "RowSelectionType"
|
|
512
|
+
"name": "selectAllChildren",
|
|
513
|
+
"description": "表格树形数据展示的时候,行选择父节点的时候是否同步勾选/取消勾选所有子节点,并且被同步勾选的子节点不能单独取消。注意,该属性必须设置 `rowKey` 属性。",
|
|
514
|
+
"type": "boolean"
|
|
579
515
|
},
|
|
580
516
|
{
|
|
581
|
-
"name": "
|
|
582
|
-
"description": "
|
|
583
|
-
"
|
|
584
|
-
"type": "(string | number)[]"
|
|
517
|
+
"name": "defaultSelectAll",
|
|
518
|
+
"description": "是否默认选择所有行。注意,该属性必须设置 `rowKey` 属性。",
|
|
519
|
+
"type": "boolean"
|
|
585
520
|
},
|
|
586
521
|
{
|
|
587
|
-
"name": "
|
|
588
|
-
"description": "
|
|
589
|
-
"
|
|
590
|
-
"
|
|
522
|
+
"name": "childrenColumnName",
|
|
523
|
+
"description": "指定树形结构的列名",
|
|
524
|
+
"default": "children",
|
|
525
|
+
"attribute": false
|
|
591
526
|
},
|
|
592
527
|
{
|
|
593
|
-
"name": "
|
|
594
|
-
"description": "
|
|
528
|
+
"name": "sortable",
|
|
529
|
+
"description": "是否支持排序。默认开启,当对应列的sorter设置成true时则可排序。sortable为false时则排序都不生效。",
|
|
530
|
+
"default": "true",
|
|
531
|
+
"attribute": false
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "frontSearch",
|
|
535
|
+
"description": "是否前端进行搜索,配合`presentational-bricks.brick-input`使用",
|
|
536
|
+
"type": "boolean"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "frontSearchQuery",
|
|
540
|
+
"description": "前端搜索参数",
|
|
541
|
+
"default": "\"\""
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "exactSearch",
|
|
545
|
+
"description": "是否精确搜索",
|
|
546
|
+
"type": "boolean"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "frontSearchFilterKeys",
|
|
550
|
+
"description": "进行前端搜索的字段,支持嵌套的写法如[\"name\",\"value.a\"],不配置的时候默认为对所有 columns 的 dataIndex[]进行前端搜索",
|
|
595
551
|
"attribute": false,
|
|
596
|
-
"type": "
|
|
552
|
+
"type": "string[]"
|
|
597
553
|
},
|
|
598
554
|
{
|
|
599
|
-
"name": "
|
|
600
|
-
"description": "
|
|
555
|
+
"name": "page",
|
|
556
|
+
"description": "页码。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 page;前台搜索的时候,一般配置成 \"${query.page=1|number}\"",
|
|
557
|
+
"type": "number"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "pageSize",
|
|
561
|
+
"description": "页码条数。后台搜索的时候一般不需要配置,列表接口返回格式通常为{list:[],page:1,pageSize:10,total:20},即默认取自 pageSize/page_size;前台搜索的时候,一般配置成 \"${query.pageSize=10|number}\"",
|
|
562
|
+
"type": "number"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "scrollConfigs",
|
|
566
|
+
"description": "",
|
|
567
|
+
"default": "{ x: true }",
|
|
601
568
|
"attribute": false,
|
|
602
|
-
"type": "
|
|
569
|
+
"type": "TableProps<unknown>[\"scroll\"]"
|
|
603
570
|
},
|
|
604
571
|
{
|
|
605
|
-
"name": "
|
|
606
|
-
"description": "
|
|
607
|
-
"default": "\"
|
|
608
|
-
"type": "string"
|
|
572
|
+
"name": "qField",
|
|
573
|
+
"description": "把过滤条件更新到 url 时的字段名",
|
|
574
|
+
"default": "\"q\""
|
|
609
575
|
},
|
|
610
576
|
{
|
|
611
|
-
"name": "
|
|
612
|
-
"description": "
|
|
577
|
+
"name": "tableDraggable",
|
|
578
|
+
"description": "表格行是否可拖拽,注意,树形数据的表格不支持该功能",
|
|
613
579
|
"type": "boolean"
|
|
614
580
|
},
|
|
615
581
|
{
|
|
616
|
-
"name": "
|
|
617
|
-
"description": "
|
|
582
|
+
"name": "zebraPattern",
|
|
583
|
+
"description": "是否展示斑马纹",
|
|
584
|
+
"type": "boolean"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "storeCheckedByUrl",
|
|
588
|
+
"description": "翻页时是否记住之前选中的项。注意,选中项的rowKey将保存在url中,如果不设置rowKey,该设置不生效。如果选择太多可能会造成url过长,请谨慎使用",
|
|
589
|
+
"type": "boolean"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "extraRows",
|
|
593
|
+
"description": "额外的行,通常为跨页勾选时,不在当前页的行",
|
|
594
|
+
"default": "[]",
|
|
618
595
|
"attribute": false,
|
|
619
|
-
"type": "
|
|
596
|
+
"type": "Record<string, unknown>[]"
|
|
620
597
|
},
|
|
621
598
|
{
|
|
622
|
-
"name": "
|
|
623
|
-
"description": "
|
|
624
|
-
"
|
|
625
|
-
|
|
599
|
+
"name": "autoSelectParentWhenAllChildrenSelected",
|
|
600
|
+
"description": "当所有子节点选中时,自动选中父节点",
|
|
601
|
+
"type": "boolean"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "thTransparent",
|
|
605
|
+
"description": "表格表头是否透明",
|
|
606
|
+
"type": "boolean"
|
|
626
607
|
},
|
|
627
608
|
{
|
|
628
609
|
"name": "showHeader",
|
|
629
610
|
"description": "是否显示表头",
|
|
630
|
-
"default": "true"
|
|
631
|
-
"type": "boolean"
|
|
611
|
+
"default": "true"
|
|
632
612
|
},
|
|
633
613
|
{
|
|
634
|
-
"name": "
|
|
635
|
-
"description": "
|
|
636
|
-
"
|
|
614
|
+
"name": "pagination",
|
|
615
|
+
"description": "是否显示分页",
|
|
616
|
+
"attribute": false,
|
|
617
|
+
"type": "false | TablePaginationConfig"
|
|
637
618
|
},
|
|
638
619
|
{
|
|
639
|
-
"name": "
|
|
640
|
-
"description": "
|
|
641
|
-
"
|
|
620
|
+
"name": "size",
|
|
621
|
+
"description": "表格大小(antd原生size)",
|
|
622
|
+
"type": "SizeType | \"x-small\""
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "type",
|
|
626
|
+
"description": "选框类型(单选/多选)",
|
|
642
627
|
"attribute": false,
|
|
643
|
-
"type": "
|
|
628
|
+
"type": "RowSelectionType"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "shouldUpdateUrlParams",
|
|
632
|
+
"description": "是否更新 url 参数。设置为否之后,如果是后台进行分页/排序等功能,则需要结合事件进行编排。如果是前台进行分页/排序,则不需要。",
|
|
633
|
+
"default": "true"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"name": "shouldRenderWhenUrlParamsUpdate",
|
|
637
|
+
"description": "更新 url 参数时是否触发页面重新渲染。仅在`shouldUpdateUrlParams`为true时有效。",
|
|
638
|
+
"default": "true"
|
|
644
639
|
},
|
|
645
640
|
{
|
|
646
|
-
"name": "
|
|
647
|
-
"description": "
|
|
641
|
+
"name": "selectedRowKeys",
|
|
642
|
+
"description": "指定选中项的 key 数组",
|
|
643
|
+
"default": "[]",
|
|
648
644
|
"attribute": false,
|
|
649
|
-
"type": "
|
|
645
|
+
"type": "React.Key[]"
|
|
650
646
|
}
|
|
651
647
|
],
|
|
652
648
|
"events": [
|
|
653
649
|
{
|
|
654
|
-
"name": "page.
|
|
655
|
-
"description": "page
|
|
650
|
+
"name": "page.update",
|
|
651
|
+
"description": "页码变化,pagePath 可在 fields.page 中设置,默认为 page",
|
|
656
652
|
"detail": {
|
|
657
|
-
"
|
|
658
|
-
"type": "{ page: number; pageSize: number }"
|
|
653
|
+
"type": "Record<string, number>"
|
|
659
654
|
}
|
|
660
655
|
},
|
|
661
656
|
{
|
|
662
|
-
"name": "
|
|
663
|
-
"description": "pageSize
|
|
664
|
-
"deprecated": "统一用 `page.change` 事件",
|
|
657
|
+
"name": "filter.update",
|
|
658
|
+
"description": "每页条数变化 ,pagePath 可在 fields.page 中设置,pageSizePath 可在 fields.pageSize 中设置,默认为 pageSize",
|
|
665
659
|
"detail": {
|
|
666
|
-
"
|
|
667
|
-
"type": "{\n page: number;\n pageSize: number;\n }"
|
|
660
|
+
"type": "Record<string, number>"
|
|
668
661
|
}
|
|
669
662
|
},
|
|
670
663
|
{
|
|
671
|
-
"name": "
|
|
672
|
-
"description": "
|
|
664
|
+
"name": "select.update",
|
|
665
|
+
"description": "勾选框变化,detail 中为所选的行数据",
|
|
673
666
|
"detail": {
|
|
674
|
-
"
|
|
675
|
-
"type": "Sort | Sort[] | undefined"
|
|
667
|
+
"type": "Record<string, any>[]"
|
|
676
668
|
}
|
|
677
669
|
},
|
|
678
670
|
{
|
|
679
|
-
"name": "row.
|
|
680
|
-
"description": "
|
|
671
|
+
"name": "select.row.keys.update",
|
|
672
|
+
"description": "勾选框变化,detail 中为所选的行key集合",
|
|
681
673
|
"detail": {
|
|
682
|
-
"
|
|
683
|
-
|
|
674
|
+
"type": "string[]"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "sort.update",
|
|
679
|
+
"description": "排序变化,detail 中的 sort 为对应排序列的 key/dataIndex,order 为升序/降序",
|
|
680
|
+
"detail": {
|
|
681
|
+
"type": "{\n sort: string;\n order: string | number;\n }"
|
|
684
682
|
}
|
|
685
683
|
},
|
|
686
684
|
{
|
|
687
685
|
"name": "row.expand",
|
|
688
|
-
"description": "
|
|
686
|
+
"description": "点击展开图标时触发的事件,事件详情中`expanded`为是否展开,`record`被点击的行信息",
|
|
689
687
|
"detail": {
|
|
690
|
-
"
|
|
691
|
-
"type": "{\n expanded: boolean;\n record: RecordType;\n }"
|
|
688
|
+
"type": "{\n expanded: boolean;\n record: Record<string, any>;\n }"
|
|
692
689
|
}
|
|
693
690
|
},
|
|
694
691
|
{
|
|
695
|
-
"name": "
|
|
696
|
-
"description": "
|
|
692
|
+
"name": "expand.rows.change",
|
|
693
|
+
"description": "展开的行变化时触发的事件,事件详情为当前展开的所有行的`rowKey`集合",
|
|
697
694
|
"detail": {
|
|
698
|
-
"
|
|
699
|
-
"type": "(string | number)[]"
|
|
695
|
+
"type": "{\n expandedRows: React.Key[];\n }"
|
|
700
696
|
}
|
|
701
697
|
},
|
|
702
698
|
{
|
|
703
699
|
"name": "row.drag",
|
|
704
|
-
"description": "
|
|
700
|
+
"description": "表格行拖拽结束发生的事件,事件详情为拖拽后重新排序的所有行数据",
|
|
705
701
|
"detail": {
|
|
706
|
-
"
|
|
707
|
-
"type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
|
|
702
|
+
"type": "{\n data: Record<string, any>[];\n }"
|
|
708
703
|
}
|
|
709
704
|
}
|
|
710
705
|
],
|
|
711
706
|
"slots": [],
|
|
712
707
|
"methods": [
|
|
713
708
|
{
|
|
714
|
-
"name": "
|
|
709
|
+
"name": "filterSourceData",
|
|
715
710
|
"params": [
|
|
716
711
|
{
|
|
717
|
-
"name": "
|
|
718
|
-
"type": "
|
|
712
|
+
"name": "event",
|
|
713
|
+
"type": "CustomEvent"
|
|
719
714
|
}
|
|
720
715
|
],
|
|
721
|
-
"description": "
|
|
722
|
-
"returns": {
|
|
723
|
-
}
|
|
724
|
-
],
|
|
725
|
-
"parts": [],
|
|
726
|
-
"description": "大型表格",
|
|
727
|
-
"category": "table"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
"name": "eo-workbench-layout-v2",
|
|
731
|
-
"properties": [
|
|
732
|
-
{
|
|
733
|
-
"name": "cardTitle",
|
|
734
|
-
"type": "string"
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
"name": "isEdit",
|
|
738
|
-
"type": "boolean"
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "layouts",
|
|
742
|
-
"attribute": false,
|
|
743
|
-
"type": "Layout[]"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
"name": "toolbarBricks",
|
|
747
|
-
"attribute": false,
|
|
748
|
-
"type": "{\n useBrick: UseSingleBrickConf[];\n }"
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
"name": "componentList",
|
|
752
|
-
"attribute": false,
|
|
753
|
-
"type": "Item[]"
|
|
754
|
-
}
|
|
755
|
-
],
|
|
756
|
-
"events": [
|
|
757
|
-
{
|
|
758
|
-
"name": "change",
|
|
759
|
-
"detail": {
|
|
760
|
-
"type": "Layout[]"
|
|
761
|
-
}
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"name": "save",
|
|
765
|
-
"detail": {
|
|
766
|
-
"type": "Layout[]"
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
"name": "cancel",
|
|
771
|
-
"detail": {
|
|
716
|
+
"description": "搜索过滤",
|
|
717
|
+
"returns": {
|
|
772
718
|
"type": "void"
|
|
773
719
|
}
|
|
774
720
|
},
|
|
775
721
|
{
|
|
776
|
-
"name": "
|
|
777
|
-
"
|
|
778
|
-
"
|
|
779
|
-
|
|
780
|
-
"type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
],
|
|
784
|
-
"slots": [],
|
|
785
|
-
"methods": [
|
|
786
|
-
{
|
|
787
|
-
"name": "setLayouts",
|
|
788
|
-
"params": [
|
|
789
|
-
{
|
|
790
|
-
"name": "layouts",
|
|
791
|
-
"type": "Layout[]"
|
|
792
|
-
}
|
|
793
|
-
]
|
|
722
|
+
"name": "expandAll",
|
|
723
|
+
"params": [],
|
|
724
|
+
"description": "展开所有行",
|
|
725
|
+
"returns": {}
|
|
794
726
|
}
|
|
795
727
|
],
|
|
796
728
|
"parts": [],
|
|
797
|
-
"description": "
|
|
729
|
+
"description": "简易表格构件。\n\n⚠️ 通常情况下,应使用 `eo-next-table` 替代。",
|
|
730
|
+
"category": "table",
|
|
731
|
+
"insider": true
|
|
798
732
|
},
|
|
799
733
|
{
|
|
800
734
|
"name": "eo-tree",
|
|
@@ -884,6 +818,72 @@
|
|
|
884
818
|
"parts": [],
|
|
885
819
|
"description": "树形构件"
|
|
886
820
|
},
|
|
821
|
+
{
|
|
822
|
+
"name": "eo-workbench-layout",
|
|
823
|
+
"properties": [
|
|
824
|
+
{
|
|
825
|
+
"name": "cardTitle",
|
|
826
|
+
"type": "string"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "isEdit",
|
|
830
|
+
"type": "boolean"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"name": "layouts",
|
|
834
|
+
"attribute": false,
|
|
835
|
+
"type": "Layout[]"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "componentList",
|
|
839
|
+
"attribute": false,
|
|
840
|
+
"type": "Item[]"
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"events": [
|
|
844
|
+
{
|
|
845
|
+
"name": "change",
|
|
846
|
+
"detail": {
|
|
847
|
+
"type": "Layout[]"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"name": "save",
|
|
852
|
+
"detail": {
|
|
853
|
+
"type": "Layout[]"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "cancel",
|
|
858
|
+
"detail": {
|
|
859
|
+
"type": "void"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"name": "action.click",
|
|
864
|
+
"description": "操作点击事件",
|
|
865
|
+
"detail": {
|
|
866
|
+
"description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
|
|
867
|
+
"type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
"slots": [],
|
|
872
|
+
"methods": [
|
|
873
|
+
{
|
|
874
|
+
"name": "setLayouts",
|
|
875
|
+
"params": [
|
|
876
|
+
{
|
|
877
|
+
"name": "layouts",
|
|
878
|
+
"type": "Layout[]"
|
|
879
|
+
}
|
|
880
|
+
]
|
|
881
|
+
}
|
|
882
|
+
],
|
|
883
|
+
"parts": [],
|
|
884
|
+
"description": "工作台布局",
|
|
885
|
+
"deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
|
|
886
|
+
},
|
|
887
887
|
{
|
|
888
888
|
"name": "eo-tree-select",
|
|
889
889
|
"properties": [
|
|
@@ -1019,53 +1019,53 @@
|
|
|
1019
1019
|
"category": "form-input-basic"
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
|
-
"name": "
|
|
1022
|
+
"name": "advanced.pdf-viewer",
|
|
1023
1023
|
"properties": [
|
|
1024
1024
|
{
|
|
1025
|
-
"name": "
|
|
1026
|
-
"description": "文案",
|
|
1027
|
-
"default": null,
|
|
1025
|
+
"name": "url",
|
|
1028
1026
|
"type": "string"
|
|
1029
1027
|
},
|
|
1030
1028
|
{
|
|
1031
|
-
"name": "
|
|
1032
|
-
"description": "省略行数",
|
|
1033
|
-
"default": "1",
|
|
1029
|
+
"name": "page",
|
|
1034
1030
|
"type": "number"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"name": "search",
|
|
1034
|
+
"type": "string"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "viewerStyle",
|
|
1038
|
+
"attribute": false,
|
|
1039
|
+
"type": "React.CSSProperties"
|
|
1035
1040
|
}
|
|
1036
1041
|
],
|
|
1037
1042
|
"events": [],
|
|
1038
1043
|
"slots": [],
|
|
1039
1044
|
"methods": [],
|
|
1040
1045
|
"parts": [],
|
|
1041
|
-
"description": "
|
|
1046
|
+
"description": "构件 `advanced.pdf-viewer`"
|
|
1042
1047
|
},
|
|
1043
1048
|
{
|
|
1044
|
-
"name": "
|
|
1049
|
+
"name": "eo-text-tooltip",
|
|
1045
1050
|
"properties": [
|
|
1046
1051
|
{
|
|
1047
|
-
"name": "
|
|
1052
|
+
"name": "label",
|
|
1053
|
+
"description": "文案",
|
|
1054
|
+
"default": null,
|
|
1048
1055
|
"type": "string"
|
|
1049
1056
|
},
|
|
1050
1057
|
{
|
|
1051
|
-
"name": "
|
|
1058
|
+
"name": "lineClamp",
|
|
1059
|
+
"description": "省略行数",
|
|
1060
|
+
"default": "1",
|
|
1052
1061
|
"type": "number"
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
"name": "search",
|
|
1056
|
-
"type": "string"
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
"name": "viewerStyle",
|
|
1060
|
-
"attribute": false,
|
|
1061
|
-
"type": "React.CSSProperties"
|
|
1062
1062
|
}
|
|
1063
1063
|
],
|
|
1064
1064
|
"events": [],
|
|
1065
1065
|
"slots": [],
|
|
1066
1066
|
"methods": [],
|
|
1067
1067
|
"parts": [],
|
|
1068
|
-
"description": "构件 `
|
|
1068
|
+
"description": "超出宽度鼠标悬浮显示tooltip\n构件 `eo-text-tooltip`"
|
|
1069
1069
|
}
|
|
1070
1070
|
],
|
|
1071
1071
|
"providers": [
|