@juzhenfe/page-model 3.21.13 → 3.22.1
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/index.es.js +9723 -14559
- package/dist/index.min.css +2 -1
- package/dist/index.umd.js +2 -7
- package/dist/{components → src/components}/buttons-renderer/utils/index.d.ts +2 -2
- package/dist/{components → src/components}/editable-table/index.d.ts +15 -14
- package/dist/{components → src/components}/form/components/column-tools/use-setting.d.ts +14 -14
- package/dist/src/components/form/components/section-config/merge.d.ts +3 -0
- package/dist/src/components/form/components/section-config/use.d.ts +14 -0
- package/dist/{components → src/components}/form/constructor.d.ts +83 -82
- package/dist/{components → src/components}/form/index.d.ts +5 -4
- package/dist/{components → src/components}/form/utils/save-columns.d.ts +30 -30
- package/dist/{components → src/components}/form/utils/use-form-els.d.ts +4 -4
- package/dist/{components → src/components}/form-dialog/use-move.d.ts +19 -19
- package/dist/{components → src/components}/page-model/components/top-tabs/constructor.d.ts +12 -11
- package/dist/{components → src/components}/page-model/constructor.d.ts +163 -162
- package/dist/{components → src/components}/page-model/index.d.ts +6 -5
- package/dist/{components → src/components}/page-model/patches/patch-config-urls.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-default-config.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-selectable.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-size.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-table-dragable.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-user-config.d.ts +2 -2
- package/dist/{components → src/components}/page-model/utils/default-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-excel-export-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-style-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-text-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-user-setting.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/error-handler.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/manager-controller.d.ts +49 -51
- package/dist/{components → src/components}/page-model/utils/patch-config.d.ts +3 -2
- package/dist/{components → src/components}/page-model/utils/use-auth-buttons.d.ts +9 -8
- package/dist/{components → src/components}/page-model/utils/use-keyboard-event.d.ts +9 -9
- package/dist/{components → src/components}/search-form/constructor.d.ts +24 -23
- package/dist/{components → src/components}/search-form/use-detect-item-width.d.ts +7 -6
- package/dist/{components → src/components}/table/components/column-tools/use-setting.d.ts +14 -14
- package/dist/{components → src/components}/table/components/column-tools/use-user-config.d.ts +14 -14
- package/dist/{components → src/components}/table/components/column-tools/use-user-show-row-config.d.ts +35 -35
- package/dist/{components → src/components}/table/components/export-form/use.d.ts +18 -17
- package/dist/{components → src/components}/table/components/selections-table/use.d.ts +15 -15
- package/dist/{components → src/components}/table/components/table-column/components/filter-zone/utils/index.d.ts +69 -69
- package/dist/{components → src/components}/table/constructor.d.ts +347 -339
- package/dist/{components → src/components}/table/utils/save-column-filter.d.ts +2 -2
- package/dist/{components → src/components}/table/utils/save-column-sort.d.ts +2 -2
- package/dist/{components → src/components}/table/utils/save-columns.d.ts +38 -38
- package/dist/{components → src/components}/table/utils/save-config.d.ts +6 -6
- package/dist/{components → src/components}/table/utils/use-column-drag.d.ts +8 -8
- package/dist/{components → src/components}/table/utils/use-listen-scroll.d.ts +7 -9
- package/dist/{components → src/components}/table/utils/use-static-summary.d.ts +13 -15
- package/dist/{components → src/components}/table/utils/use-table-config-change.d.ts +7 -9
- package/dist/{components → src/components}/table/utils/use-table-els.d.ts +6 -8
- package/dist/{main.d.ts → src/main.d.ts} +22 -21
- package/dist/{utils → src/utils}/config-saver.d.ts +51 -51
- package/dist/{utils → src/utils}/define-config.d.ts +3 -2
- package/dist/{utils → src/utils}/event-chain.d.ts +9 -9
- package/dist/{utils → src/utils}/event-emitter.d.ts +7 -7
- package/dist/{utils → src/utils}/index.d.ts +103 -102
- package/dist/src/utils/infinite-table.d.ts +49 -0
- package/dist/{utils → src/utils}/manager.d.ts +17 -16
- package/dist/{utils → src/utils}/provide-keys.d.ts +20 -20
- package/dist/{utils → src/utils}/reflect/index.d.ts +17 -16
- package/dist/{utils → src/utils}/reflect/reflect-collector.d.ts +25 -25
- package/dist/{utils → src/utils}/resize.d.ts +4 -3
- package/package.json +5 -6
- package/dist/components/buttons-renderer/components/button-item-render/index.vue.d.ts +0 -35
- package/dist/components/buttons-renderer/index.vue.d.ts +0 -85
- package/dist/components/column-filter-tools/index.vue.d.ts +0 -148
- package/dist/components/column-sort-tools/index.vue.d.ts +0 -170
- package/dist/components/draggable-list/index.vue.d.ts +0 -39
- package/dist/components/editable-table/components/table-cell/index.vue.d.ts +0 -12
- package/dist/components/form/components/col-container/components/module-container/index.vue.d.ts +0 -156
- package/dist/components/form/components/col-container/components/section-title-els/index.vue.d.ts +0 -45
- package/dist/components/form/components/col-container/components/tabs-mode-container/index.vue.d.ts +0 -100
- package/dist/components/form/components/col-container/index.vue.d.ts +0 -236
- package/dist/components/form/components/container-component/index.vue.d.ts +0 -281
- package/dist/components/form/type.d.ts +0 -167
- package/dist/components/form-container/components/dialog-mode/index.vue.d.ts +0 -116
- package/dist/components/form-container/components/drawer-mode/index.vue.d.ts +0 -123
- package/dist/components/form-container/components/full-page/index.vue.d.ts +0 -39
- package/dist/components/form-container/index.vue.d.ts +0 -35
- package/dist/components/form-dialog/index.vue.d.ts +0 -79
- package/dist/components/form-drawer/index.vue.d.ts +0 -83
- package/dist/components/form-item-renderer/index.vue.d.ts +0 -74
- package/dist/components/line-clamp-tools/index.vue.d.ts +0 -103
- package/dist/components/normal-tab/index.vue.d.ts +0 -35
- package/dist/components/normal-tab/type.d.ts +0 -18
- package/dist/components/page-model/components/selectable-operate/index.vue.d.ts +0 -120
- package/dist/components/page-model/components/top-tabs/index.vue.d.ts +0 -42
- package/dist/components/page-model/components/top-tabs/type.d.ts +0 -11
- package/dist/components/page-model/index.vue.d.ts +0 -2
- package/dist/components/page-model/type.d.ts +0 -344
- package/dist/components/scenes-tab/index.vue.d.ts +0 -4
- package/dist/components/scenes-tab/type.d.ts +0 -14
- package/dist/components/search-form/components/search-form-full/index.vue.d.ts +0 -174
- package/dist/components/search-form/type.d.ts +0 -42
- package/dist/components/simple-popover/index.vue.d.ts +0 -68
- package/dist/components/table/components/context-column-summary/index.vue.d.ts +0 -102
- package/dist/components/table/components/context-menu/index.vue.d.ts +0 -184
- package/dist/components/table/components/empty-data/index.vue.d.ts +0 -12
- package/dist/components/table/components/selections-table/index.vue.d.ts +0 -2
- package/dist/components/table/components/table-column/components/filter-zone/index.vue.d.ts +0 -109
- package/dist/components/table/components/table-column/index.vue.d.ts +0 -339
- package/dist/components/table/components/table-wrap/index.vue.d.ts +0 -16
- package/dist/components/table/index.vue.d.ts +0 -2
- package/dist/components/table/type.d.ts +0 -360
- package/dist/components/table-cell-renderer/index.vue.d.ts +0 -57
- package/dist/components/table-toolsbox/index.vue.d.ts +0 -101
- package/dist/types/common.d.ts +0 -484
- package/dist/types/form-item-types/cascader.d.ts +0 -38
- package/dist/types/form-item-types/checkbox-group.d.ts +0 -19
- package/dist/types/form-item-types/color-picker.d.ts +0 -21
- package/dist/types/form-item-types/date-picker.d.ts +0 -46
- package/dist/types/form-item-types/input-number.d.ts +0 -15
- package/dist/types/form-item-types/input.d.ts +0 -16
- package/dist/types/form-item-types/jz-a-map.d.ts +0 -14
- package/dist/types/form-item-types/jz-cascader.d.ts +0 -20
- package/dist/types/form-item-types/jz-city-picker.d.ts +0 -27
- package/dist/types/form-item-types/jz-ck-editor.d.ts +0 -27
- package/dist/types/form-item-types/jz-editor.d.ts +0 -20
- package/dist/types/form-item-types/jz-file-upload.d.ts +0 -20
- package/dist/types/form-item-types/jz-img-upload.d.ts +0 -23
- package/dist/types/form-item-types/jz-long-input.d.ts +0 -10
- package/dist/types/form-item-types/jz-td-map.d.ts +0 -13
- package/dist/types/form-item-types/no-e-type.d.ts +0 -12
- package/dist/types/form-item-types/radio-group.d.ts +0 -17
- package/dist/types/form-item-types/rate.d.ts +0 -30
- package/dist/types/form-item-types/select-v2.d.ts +0 -47
- package/dist/types/form-item-types/select.d.ts +0 -43
- package/dist/types/form-item-types/slider.d.ts +0 -31
- package/dist/types/form-item-types/switch.d.ts +0 -14
- package/dist/types/form-item-types/time-picker.d.ts +0 -41
- package/dist/types/form-item-types/time-select.d.ts +0 -30
- package/dist/types/renderer.d.ts +0 -9
- package/dist/types/shims-vue-property.d.ts +0 -7
- package/dist/types/shims-vue.d.ts +0 -7
- package/dist/types/window.d.ts +0 -10
|
@@ -1,341 +1,349 @@
|
|
|
1
|
-
import IManager from '../../utils/manager';
|
|
1
|
+
import { default as IManager } from '../../utils/manager';
|
|
2
2
|
import { ComponentPublicInstance } from 'vue';
|
|
3
|
-
import PageModelManager from '../page-model/constructor';
|
|
3
|
+
import { default as PageModelManager } from '../page-model/constructor';
|
|
4
4
|
import { ElTable } from 'element-plus';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
get
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
*
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
*
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
*
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
*
|
|
199
|
-
*/
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
*
|
|
203
|
-
* @
|
|
204
|
-
*/
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @param
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
*
|
|
213
|
-
* @param
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
*
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
*
|
|
244
|
-
*/
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
*
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
*
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
*
|
|
307
|
-
*/
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
*
|
|
311
|
-
*/
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
*
|
|
315
|
-
*/
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
*
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
*
|
|
323
|
-
*/
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
*
|
|
327
|
-
*/
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
5
|
+
|
|
6
|
+
export default class TableManager extends IManager {
|
|
7
|
+
size: PageModel.Size;
|
|
8
|
+
propsConfig?: PageModel.Table;
|
|
9
|
+
tableRef: typeof ElTable;
|
|
10
|
+
loadingData: boolean;
|
|
11
|
+
tableData: any[];
|
|
12
|
+
/**
|
|
13
|
+
* 渲染数据
|
|
14
|
+
*/
|
|
15
|
+
renderTableData: any[];
|
|
16
|
+
/**
|
|
17
|
+
* 表格编辑开启状态对象
|
|
18
|
+
*/
|
|
19
|
+
editableOpen: import('vue').Reactive<Map<string, boolean>>;
|
|
20
|
+
/**
|
|
21
|
+
* 表格保存源数据
|
|
22
|
+
*/
|
|
23
|
+
editableData: Map<string, string>;
|
|
24
|
+
total: number;
|
|
25
|
+
pagination: PageModel.Pagination;
|
|
26
|
+
currentPage: number;
|
|
27
|
+
pageSize: number;
|
|
28
|
+
pageSizeUserSet: number;
|
|
29
|
+
tableProps: PageModel.TableProps;
|
|
30
|
+
tableEvents: PageModel.TableEvents;
|
|
31
|
+
selection: any[];
|
|
32
|
+
isDataUpdating: boolean;
|
|
33
|
+
currentPageSelection: any[];
|
|
34
|
+
sortOrders: string[];
|
|
35
|
+
sortParams: AnyObject;
|
|
36
|
+
constructor(config?: PageModel.Table);
|
|
37
|
+
/**
|
|
38
|
+
* 是否已经初始化列筛选参数
|
|
39
|
+
*/
|
|
40
|
+
private isInitColumnParams;
|
|
41
|
+
/**
|
|
42
|
+
* 获取本地的表格的列筛选参数
|
|
43
|
+
*/
|
|
44
|
+
initColumnParams(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 是否已经初始化列筛选参数
|
|
47
|
+
*/
|
|
48
|
+
private isInitColumnSortParams;
|
|
49
|
+
/**
|
|
50
|
+
* 获取本地的表格的列筛选参数
|
|
51
|
+
*/
|
|
52
|
+
initColumnSortParams(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* 是否当前列字段工具可见
|
|
55
|
+
*/
|
|
56
|
+
isColumnToolsVisible: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* * 切换列字段工具的可见
|
|
59
|
+
*/
|
|
60
|
+
updateColumnToolsVisible(visible: boolean): void;
|
|
61
|
+
get table(): PageModel.Table<AnyObject, TableManager>;
|
|
62
|
+
/**
|
|
63
|
+
* 是否虚拟表格模式
|
|
64
|
+
*/
|
|
65
|
+
get isVirtual(): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* config配置的rowKey
|
|
68
|
+
* 用户自己配置的rowKey
|
|
69
|
+
*/
|
|
70
|
+
get setedRowKey(): string;
|
|
71
|
+
/**
|
|
72
|
+
* 内置的rowKey
|
|
73
|
+
*/
|
|
74
|
+
randomRowKey: string;
|
|
75
|
+
/**
|
|
76
|
+
* 使用的rowKey
|
|
77
|
+
* 可能是用户配置的id,也可能是生成的随机串
|
|
78
|
+
*/
|
|
79
|
+
get rowKey(): string;
|
|
80
|
+
init(): void;
|
|
81
|
+
updateTableRef(tableRef: typeof ElTable): void;
|
|
82
|
+
updateLoading(loading: boolean): void;
|
|
83
|
+
/**
|
|
84
|
+
* 获取pageIndex的key
|
|
85
|
+
*/
|
|
86
|
+
get pageIndexKey(): string;
|
|
87
|
+
/**
|
|
88
|
+
* 获取pageSize的key
|
|
89
|
+
*/
|
|
90
|
+
get pageSizeKey(): string;
|
|
91
|
+
/**
|
|
92
|
+
* 获取表格的搜索参数
|
|
93
|
+
* @returns
|
|
94
|
+
*/
|
|
95
|
+
getReqParams(): any;
|
|
96
|
+
/**
|
|
97
|
+
* 列筛选参数
|
|
98
|
+
*/
|
|
99
|
+
columnParamsList: PageModel.TableColumnParamsItem[];
|
|
100
|
+
/**
|
|
101
|
+
* 返回对象,每列是否配置了筛选
|
|
102
|
+
* key是否配置参数
|
|
103
|
+
*/
|
|
104
|
+
get columnParamsKey(): {};
|
|
105
|
+
/**
|
|
106
|
+
* 是否开启列筛选
|
|
107
|
+
*/
|
|
108
|
+
get isColumnSearch(): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* 获取每列的参数
|
|
111
|
+
*/
|
|
112
|
+
getColumnParams(): any;
|
|
113
|
+
/**
|
|
114
|
+
* 列排序参数
|
|
115
|
+
*/
|
|
116
|
+
columnSortParamsList: PageModel.TableColumnSortParamsItem[];
|
|
117
|
+
/**
|
|
118
|
+
* 是否开启排序功能
|
|
119
|
+
*/
|
|
120
|
+
get isColumnSort(): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* 获取每列的排序参数
|
|
123
|
+
*/
|
|
124
|
+
getColumnSortParams(): any;
|
|
125
|
+
refreshPage(): void;
|
|
126
|
+
onConfigUpdated(): void;
|
|
127
|
+
updateByConfig(): void;
|
|
128
|
+
totalEls: any[];
|
|
129
|
+
updateTotalEls(): void;
|
|
130
|
+
/**
|
|
131
|
+
* 主动更新选中数据
|
|
132
|
+
* @param selection
|
|
133
|
+
*/
|
|
134
|
+
updateSelection(selection: any[]): void;
|
|
135
|
+
clearSelection(): void;
|
|
136
|
+
/**
|
|
137
|
+
* 根据ElTable返回的数据进行表格选中更新
|
|
138
|
+
* @param selection
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
_updateSelectionByElTable(selection: any[]): boolean;
|
|
142
|
+
updateProps(): void;
|
|
143
|
+
updateEvents(): void;
|
|
144
|
+
/**
|
|
145
|
+
* 获取有效的选中数据
|
|
146
|
+
* @param selections
|
|
147
|
+
* @returns
|
|
148
|
+
*/
|
|
149
|
+
getValidSelections(selections: any[]): any[];
|
|
150
|
+
patchTableSelectable(): void;
|
|
151
|
+
patchTableRadio(): void;
|
|
152
|
+
/**
|
|
153
|
+
* 设置上下文菜单
|
|
154
|
+
*/
|
|
155
|
+
patchTableContextMenu(): boolean;
|
|
156
|
+
patchTableSortable(): void;
|
|
157
|
+
/**
|
|
158
|
+
* 构建单元格的唯一key
|
|
159
|
+
* 列标记 - 行标记
|
|
160
|
+
* @param columnKey 列的key
|
|
161
|
+
* @param rowIndex 行数据 或者 行key
|
|
162
|
+
* @returns
|
|
163
|
+
*/
|
|
164
|
+
composeTableCellKey(columnKey: string, rowKey: string): string;
|
|
165
|
+
/**
|
|
166
|
+
* 构建单元格的唯一key
|
|
167
|
+
* 列标记 - 行标记
|
|
168
|
+
* @param columnKey table列
|
|
169
|
+
* @param rowIndex 行数据
|
|
170
|
+
* @returns
|
|
171
|
+
*/
|
|
172
|
+
composeTableCellKeyByData(column: any, row: any): string;
|
|
173
|
+
/**
|
|
174
|
+
* 当前聚焦的单元格
|
|
175
|
+
*/
|
|
176
|
+
focusCellKey: string;
|
|
177
|
+
/**
|
|
178
|
+
* 当前聚焦的列
|
|
179
|
+
*/
|
|
180
|
+
focusEl: PageModel.TableBaseItem;
|
|
181
|
+
/**
|
|
182
|
+
* 移除当前单元格聚焦
|
|
183
|
+
*/
|
|
184
|
+
blurCell(): void;
|
|
185
|
+
/**
|
|
186
|
+
* document点击事件
|
|
187
|
+
*/
|
|
188
|
+
documentClickHandler: (e: MouseEvent) => void;
|
|
189
|
+
/**
|
|
190
|
+
* 移除单元格外点击事件
|
|
191
|
+
*/
|
|
192
|
+
removeCellOutClickEvent(): void;
|
|
193
|
+
/**
|
|
194
|
+
* 单元格外点击,清理选中
|
|
195
|
+
*/
|
|
196
|
+
bindCellOutClickEvent(): void;
|
|
197
|
+
/**
|
|
198
|
+
* 当前单元格聚焦
|
|
199
|
+
*/
|
|
200
|
+
focusCell(cell?: HTMLElement): void;
|
|
201
|
+
/**
|
|
202
|
+
* 设置表格可编辑
|
|
203
|
+
* @returns
|
|
204
|
+
*/
|
|
205
|
+
patchTableEditable(): boolean;
|
|
206
|
+
/**
|
|
207
|
+
* 设置单元格可编辑
|
|
208
|
+
* @param mapKey
|
|
209
|
+
*/
|
|
210
|
+
setCellEditing(cellKey: string): void;
|
|
211
|
+
/**
|
|
212
|
+
* 关闭单元格的编辑状态
|
|
213
|
+
* @param cellKey
|
|
214
|
+
*/
|
|
215
|
+
closeCellEditing(cellKey: string): void;
|
|
216
|
+
/**
|
|
217
|
+
* 保存当前行的原数据
|
|
218
|
+
* @param key
|
|
219
|
+
* @param data
|
|
220
|
+
*/
|
|
221
|
+
saveRowData(cellKey: string, data: any): void;
|
|
222
|
+
/**
|
|
223
|
+
* 清空当前行的原数据
|
|
224
|
+
*/
|
|
225
|
+
clearRowData(cellKey: string): void;
|
|
226
|
+
/**
|
|
227
|
+
* 更新当前行的更新loading
|
|
228
|
+
*/
|
|
229
|
+
setRowUpdateLoading(cellKey: string, loading: boolean): void;
|
|
230
|
+
/**
|
|
231
|
+
* 还原原来的数据
|
|
232
|
+
*/
|
|
233
|
+
restoreCellValue(row: any, cellKey: string, restoreKey: string): void;
|
|
234
|
+
/**
|
|
235
|
+
* 重置编辑的情况
|
|
236
|
+
*/
|
|
237
|
+
resetTableEdit(): void;
|
|
238
|
+
/**
|
|
239
|
+
* 更新分页器
|
|
240
|
+
*/
|
|
241
|
+
updatePagination(): void;
|
|
242
|
+
/**
|
|
243
|
+
* 识别数据标识,如果没有携带标志,自动生成
|
|
244
|
+
*/
|
|
245
|
+
setTableDataRowKey(data: any[]): any[];
|
|
246
|
+
/**
|
|
247
|
+
* 更新表格数据源
|
|
248
|
+
* @param data
|
|
249
|
+
*/
|
|
250
|
+
updateData(data: any[]): void;
|
|
251
|
+
/**
|
|
252
|
+
* 设置表格的选中状态
|
|
253
|
+
*/
|
|
254
|
+
setTableSelection(): void;
|
|
255
|
+
/**
|
|
256
|
+
* 删除多选中的某项
|
|
257
|
+
* @param selectItem
|
|
258
|
+
*/
|
|
259
|
+
delSelectionItem(selectItem: any): void;
|
|
260
|
+
updateTotal(total: number): void;
|
|
261
|
+
updateContext(context: ComponentPublicInstance): void;
|
|
262
|
+
register(manager: PageModelManager): void;
|
|
263
|
+
radioData: AnyObject | null;
|
|
264
|
+
setRadioData(radioData: AnyObject | null): void;
|
|
265
|
+
/**
|
|
266
|
+
* 强制同步单选的数据
|
|
267
|
+
*/
|
|
268
|
+
_syncRadioData(): void;
|
|
269
|
+
loadExcelDependence(): Promise<boolean | HTMLScriptElement>;
|
|
270
|
+
getTableCellText(el: any, rowData: AnyObject): any;
|
|
271
|
+
/**
|
|
272
|
+
* 获取excelData的表头
|
|
273
|
+
*/
|
|
274
|
+
getExcelDataHeader(columns: any[]): {
|
|
275
|
+
exportEls: any[];
|
|
276
|
+
excelData: any[][];
|
|
277
|
+
cols: any[];
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* exceldata插入数据
|
|
281
|
+
*/
|
|
282
|
+
insertExcelData(excelData: any[][], exportEls: any[], insertData: any[]): void;
|
|
283
|
+
/**
|
|
284
|
+
* 将树形数据扁平化
|
|
285
|
+
* 合并到主数据中
|
|
286
|
+
*/
|
|
287
|
+
patchChildrenData(data: any[], childrenKey: string): any;
|
|
288
|
+
/**
|
|
289
|
+
* 导出数据到excel
|
|
290
|
+
* @param opts
|
|
291
|
+
* @returns
|
|
292
|
+
*/
|
|
293
|
+
exportDataToExcel(opts: PageModel.TableDataExportModel): Promise<boolean>;
|
|
294
|
+
/**
|
|
295
|
+
* 基于excel数据生成excel文件进行下载
|
|
296
|
+
*/
|
|
297
|
+
exportDataToExcelByExcelData(filename: string, excelData: any[][], cols: any[], mergeOpt?: {
|
|
298
|
+
exportData: any[];
|
|
299
|
+
exportEls: any[];
|
|
300
|
+
}): boolean;
|
|
301
|
+
/**
|
|
302
|
+
* 当前表格元素
|
|
303
|
+
*/
|
|
304
|
+
currentFilterTableEls: PageModel.TableBaseItem[];
|
|
305
|
+
/**
|
|
306
|
+
* 更新当前表格元素
|
|
307
|
+
*/
|
|
308
|
+
updateCurrentFilterTableEls(els: PageModel.TableBaseItem[]): void;
|
|
309
|
+
/**
|
|
310
|
+
* 当前渲染的列元素
|
|
311
|
+
*/
|
|
312
|
+
currentRenderTableEls: PageModel.TableBaseItem[];
|
|
313
|
+
/**
|
|
314
|
+
* 更新当前渲染的列元素
|
|
315
|
+
*/
|
|
316
|
+
updateCurrentRenderTableEls(els: PageModel.TableBaseItem[]): void;
|
|
317
|
+
/**
|
|
318
|
+
* 当前列元素更新
|
|
319
|
+
*/
|
|
320
|
+
onCurrentRenderTableElsChange(): void;
|
|
321
|
+
/**
|
|
322
|
+
* 当前隐藏的字段数量
|
|
323
|
+
*/
|
|
324
|
+
get hiddeenFieldCount(): number;
|
|
325
|
+
/**
|
|
326
|
+
* 私人配置key
|
|
327
|
+
*/
|
|
328
|
+
saveContentScope: string;
|
|
329
|
+
/**
|
|
330
|
+
* 私人配置
|
|
331
|
+
*/
|
|
332
|
+
saveContent: any[];
|
|
333
|
+
/**
|
|
334
|
+
* 更新私人配置
|
|
335
|
+
*/
|
|
336
|
+
updateSaveContent(content: any[], scope: string): void;
|
|
337
|
+
onUnmounted(): void;
|
|
338
|
+
scrollTop: number;
|
|
339
|
+
updateScrollTop(top: any): void;
|
|
340
|
+
scrollLeft: number;
|
|
341
|
+
updateScrollLeft(left: any): void;
|
|
342
|
+
/**
|
|
343
|
+
* 组件暴露的方法
|
|
344
|
+
*/
|
|
345
|
+
exposeActions: {
|
|
346
|
+
[key: string]: (...rest: any[]) => unknown;
|
|
347
|
+
};
|
|
348
|
+
destroy(): void;
|
|
349
|
+
}
|