bkui-vue 2.0.1-beta.15.table.6 → 2.0.1-beta.17
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.cjs.js +64 -64
- package/dist/index.esm.js +20429 -20328
- package/dist/index.umd.js +64 -64
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -129
- package/lib/affix/affix.variable.css +0 -258
- package/lib/alert/alert.css +3 -132
- package/lib/alert/alert.variable.css +0 -258
- package/lib/backtop/backtop.css +3 -132
- package/lib/backtop/backtop.variable.css +3 -390
- package/lib/badge/badge.css +26 -155
- package/lib/badge/badge.variable.css +0 -258
- package/lib/breadcrumb/breadcrumb.css +5 -134
- package/lib/breadcrumb/breadcrumb.variable.css +5 -392
- package/lib/button/button.css +143 -272
- package/lib/button/button.variable.css +0 -258
- package/lib/card/card.css +4 -133
- package/lib/card/card.variable.css +4 -391
- package/lib/cascader/cascader.css +23 -152
- package/lib/cascader/cascader.variable.css +23 -410
- package/lib/checkbox/checkbox.css +9 -138
- package/lib/checkbox/checkbox.variable.css +0 -258
- package/lib/code-diff/code-diff.css +0 -129
- package/lib/code-diff/code-diff.variable.css +0 -258
- package/lib/collapse/collapse.css +1 -130
- package/lib/collapse/collapse.variable.css +0 -258
- package/lib/collapse-transition/collapse-transition.css +0 -129
- package/lib/collapse-transition/collapse-transition.variable.css +0 -258
- package/lib/color-picker/color-picker.css +0 -129
- package/lib/color-picker/color-picker.variable.css +0 -258
- package/lib/config-provider/config-provider.css +0 -129
- package/lib/config-provider/config-provider.variable.css +0 -258
- package/lib/container/container.css +0 -129
- package/lib/container/container.variable.css +0 -387
- package/lib/date-picker/date-picker.css +17 -146
- package/lib/date-picker/date-picker.variable.css +0 -258
- package/lib/date-picker/index.js +16 -6
- package/lib/dialog/dialog.css +8 -137
- package/lib/dialog/dialog.variable.css +8 -395
- package/lib/divider/divider.css +3 -132
- package/lib/divider/divider.variable.css +0 -258
- package/lib/dropdown/dropdown.css +0 -129
- package/lib/dropdown/dropdown.variable.css +0 -387
- package/lib/exception/exception.css +0 -129
- package/lib/exception/exception.variable.css +0 -258
- package/lib/fixed-navbar/fixed-navbar.css +4 -133
- package/lib/fixed-navbar/fixed-navbar.variable.css +0 -258
- package/lib/form/form.css +0 -129
- package/lib/form/form.variable.css +0 -258
- package/lib/image/image-viewer.css +0 -129
- package/lib/image/image-viewer.variable.css +0 -258
- package/lib/image/image.css +0 -129
- package/lib/image/image.variable.css +0 -387
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +4 -133
- package/lib/info-box/info-box.variable.css +0 -258
- package/lib/input/input.css +72 -201
- package/lib/input/input.variable.css +72 -459
- package/lib/link/link.css +16 -145
- package/lib/link/link.variable.css +0 -258
- package/lib/loading/loading.css +16 -145
- package/lib/loading/loading.variable.css +16 -403
- package/lib/menu/menu.css +18 -147
- package/lib/menu/menu.variable.css +18 -405
- package/lib/menu/submenu.css +0 -129
- package/lib/menu/submenu.variable.css +0 -258
- package/lib/message/message.css +21 -150
- package/lib/message/message.variable.css +0 -258
- package/lib/modal/modal.css +4 -133
- package/lib/modal/modal.variable.css +4 -391
- package/lib/navigation/navigation.css +2 -131
- package/lib/navigation/navigation.variable.css +0 -258
- package/lib/notify/notify.css +7 -136
- package/lib/notify/notify.variable.css +0 -258
- package/lib/pagination/pagination.css +1 -130
- package/lib/pagination/pagination.variable.css +0 -258
- package/lib/pop-confirm/pop-confirm.css +0 -129
- package/lib/pop-confirm/pop-confirm.variable.css +0 -258
- package/lib/popover/popover.css +0 -129
- package/lib/popover/popover.variable.css +0 -258
- package/lib/process/process.css +13 -142
- package/lib/process/process.variable.css +0 -258
- package/lib/progress/progress.css +4 -133
- package/lib/progress/progress.variable.css +4 -391
- package/lib/radio/radio.css +42 -171
- package/lib/radio/radio.variable.css +0 -258
- package/lib/rate/rate.css +0 -129
- package/lib/rate/rate.variable.css +0 -258
- package/lib/resize-layout/resize-layout.css +0 -129
- package/lib/resize-layout/resize-layout.variable.css +0 -258
- package/lib/scrollbar/index.js +17275 -14
- package/lib/scrollbar/scrollbar-core/index.d.ts +1 -2
- package/lib/scrollbar/scrollbar.css +0 -129
- package/lib/scrollbar/scrollbar.variable.css +0 -258
- package/lib/search-select/search-select.css +33 -162
- package/lib/search-select/search-select.variable.css +33 -420
- package/lib/select/select.css +39 -168
- package/lib/select/select.variable.css +39 -426
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -72
- package/lib/sideslider/sideslider.css +1 -130
- package/lib/sideslider/sideslider.variable.css +0 -258
- package/lib/slider/slider.css +5 -134
- package/lib/slider/slider.variable.css +0 -258
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.css +38 -167
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +0 -258
- package/lib/styles/mixins/animate.css +0 -129
- package/lib/styles/mixins/animate.variable.css +0 -258
- package/lib/styles/mixins/mixins.css +0 -129
- package/lib/styles/mixins/mixins.variable.css +0 -129
- package/lib/styles/mixins/popper.css +0 -129
- package/lib/styles/mixins/popper.variable.css +0 -258
- package/lib/styles/mixins/scroll.css +0 -129
- package/lib/styles/mixins/scroll.variable.css +0 -258
- package/lib/styles/reset.css +0 -129
- package/lib/styles/reset.variable.css +0 -258
- package/lib/styles/themes/themes.less +127 -306
- package/lib/swiper/swiper.css +0 -129
- package/lib/swiper/swiper.variable.css +0 -258
- package/lib/switcher/switcher.css +17 -146
- package/lib/switcher/switcher.variable.css +17 -404
- package/lib/tab/tab.css +17 -146
- package/lib/tab/tab.variable.css +0 -258
- package/lib/table/components/table-column.d.ts +0 -1
- package/lib/table/const.d.ts +0 -12
- package/lib/table/events.d.ts +98 -2
- package/lib/table/index.d.ts +502 -28
- package/lib/table/index.js +3519 -3225
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +0 -129
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.variable.css +0 -258
- package/lib/table/plugins/head-sort.css +0 -129
- package/lib/table/plugins/head-sort.variable.css +0 -258
- package/lib/table/plugins/settings.css +0 -130
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +0 -259
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/{hooks → plugins}/use-column-template.d.ts +2 -1
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +23 -0
- package/lib/table/props.d.ts +9 -19
- package/lib/table/table.css +212 -329
- package/lib/table/table.d.ts +174 -18
- package/lib/table/table.less +47 -35
- package/lib/table/table.variable.css +212 -587
- package/lib/table/use-attributes.d.ts +62 -0
- package/lib/table/use-column.d.ts +155 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +3 -26
- package/lib/table-column/index.d.ts +0 -3
- package/lib/table-column/index.js +8 -26
- package/lib/tag/tag.css +5 -134
- package/lib/tag/tag.variable.css +0 -258
- package/lib/tag-input/tag-input.css +18 -147
- package/lib/tag-input/tag-input.variable.css +0 -258
- package/lib/time-picker/time-picker.css +0 -129
- package/lib/time-picker/time-picker.variable.css +0 -258
- package/lib/timeline/timeline.css +19 -148
- package/lib/timeline/timeline.variable.css +0 -258
- package/lib/transfer/transfer.css +19 -148
- package/lib/transfer/transfer.variable.css +0 -258
- package/lib/tree/tree.css +9 -138
- package/lib/tree/tree.variable.css +9 -396
- package/lib/upload/upload.css +27 -156
- package/lib/upload/upload.variable.css +27 -414
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/virtual-render.css +0 -129
- package/lib/virtual-render/virtual-render.variable.css +0 -387
- package/package.json +2 -1
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.css +0 -129
- package/lib/styles/themes/themes.variable.css +0 -129
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-columns.d.ts +0 -55
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -15
- package/lib/table/hooks/use-layout.d.ts +0 -20
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -23
- package/lib/table/hooks/use-rows.d.ts +0 -25
- package/lib/table/hooks/use-settings.d.ts +0 -23
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-shift-key.d.ts +0 -0
package/lib/table/index.d.ts
CHANGED
@@ -167,12 +167,173 @@ declare const BkTable: {
|
|
167
167
|
} & {
|
168
168
|
default: boolean;
|
169
169
|
};
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
};
|
175
|
-
|
170
|
+
}>> & {
|
171
|
+
onDragend?: (_args: {
|
172
|
+
sourceEvent: DragEvent;
|
173
|
+
data: any[];
|
174
|
+
}) => any;
|
175
|
+
onSelect?: (_args: {
|
176
|
+
row: any;
|
177
|
+
index: number;
|
178
|
+
checked: string;
|
179
|
+
data: any[];
|
180
|
+
}) => any;
|
181
|
+
onCellClick?: (_args: {
|
182
|
+
event: MouseEvent;
|
183
|
+
row: any;
|
184
|
+
column: import("./props").Column;
|
185
|
+
cell: {
|
186
|
+
getValue: () => string;
|
187
|
+
};
|
188
|
+
rowIndex: number;
|
189
|
+
columnIndex: number;
|
190
|
+
}) => any;
|
191
|
+
onCellDblclick?: (_args: {
|
192
|
+
event: MouseEvent;
|
193
|
+
row: any;
|
194
|
+
column: import("./props").Column;
|
195
|
+
cell: {
|
196
|
+
getValue: () => string;
|
197
|
+
};
|
198
|
+
rowIndex: number;
|
199
|
+
columnIndex: number;
|
200
|
+
}) => any;
|
201
|
+
onColumnFilter?: (_args: {
|
202
|
+
checked: string[];
|
203
|
+
column: import("./props").Column;
|
204
|
+
index: number;
|
205
|
+
}) => any;
|
206
|
+
onColFilterSave?: (_args: {
|
207
|
+
column: import("./props").Column;
|
208
|
+
values: any[];
|
209
|
+
}) => any;
|
210
|
+
onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
|
211
|
+
onColumnSort?: (_args: {
|
212
|
+
column: import("./props").Column;
|
213
|
+
index: number;
|
214
|
+
type: import("./const").SORT_OPTION;
|
215
|
+
}) => any;
|
216
|
+
onPageLimitChange?: (_arg: number) => any;
|
217
|
+
onPageValueChange?: (_arg: number) => any;
|
218
|
+
onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
219
|
+
onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
220
|
+
onRowExpand?: (_args: {
|
221
|
+
row: any;
|
222
|
+
column: import("./props").Column;
|
223
|
+
index: number;
|
224
|
+
rows: any[];
|
225
|
+
e: MouseEvent;
|
226
|
+
}) => any;
|
227
|
+
onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
228
|
+
onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
229
|
+
onSelectAll?: (_args: {
|
230
|
+
checked: string;
|
231
|
+
data: any[];
|
232
|
+
}) => any;
|
233
|
+
onSelectionChange?: (_args: {
|
234
|
+
row: any;
|
235
|
+
index: number;
|
236
|
+
checked: string;
|
237
|
+
data: any[];
|
238
|
+
isAll: boolean;
|
239
|
+
}) => any;
|
240
|
+
onScrollBottom?: (_args: {
|
241
|
+
translateX: number;
|
242
|
+
translateY: number;
|
243
|
+
scrollTop: number;
|
244
|
+
scrollLeft: number;
|
245
|
+
bottom: number;
|
246
|
+
}) => any;
|
247
|
+
onSettingChange?: (_args: {
|
248
|
+
checked: string[];
|
249
|
+
size: string;
|
250
|
+
height: number;
|
251
|
+
fields: Record<string, any>[];
|
252
|
+
}) => any;
|
253
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
254
|
+
columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
|
255
|
+
columnFilter: (_args: {
|
256
|
+
checked: string[];
|
257
|
+
column: import("./props").Column;
|
258
|
+
index: number;
|
259
|
+
}) => boolean;
|
260
|
+
columnSort: (_args: {
|
261
|
+
column: import("./props").Column;
|
262
|
+
index: number;
|
263
|
+
type: import("./const").SORT_OPTION;
|
264
|
+
}) => boolean;
|
265
|
+
colFilterSave: (_args: {
|
266
|
+
column: import("./props").Column;
|
267
|
+
values: any[];
|
268
|
+
}) => boolean;
|
269
|
+
rowClick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
270
|
+
rowDblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
271
|
+
rowExpand: (_args: {
|
272
|
+
row: any;
|
273
|
+
column: import("./props").Column;
|
274
|
+
index: number;
|
275
|
+
rows: any[];
|
276
|
+
e: MouseEvent;
|
277
|
+
}) => boolean;
|
278
|
+
select: (_args: {
|
279
|
+
row: any;
|
280
|
+
index: number;
|
281
|
+
checked: string;
|
282
|
+
data: any[];
|
283
|
+
}) => boolean;
|
284
|
+
selectAll: (_args: {
|
285
|
+
checked: string;
|
286
|
+
data: any[];
|
287
|
+
}) => boolean;
|
288
|
+
selectionChange: (_args: {
|
289
|
+
row: any;
|
290
|
+
index: number;
|
291
|
+
checked: string;
|
292
|
+
data: any[];
|
293
|
+
isAll: boolean;
|
294
|
+
}) => boolean;
|
295
|
+
pageLimitChange: (_arg: number) => boolean;
|
296
|
+
pageValueChange: (_arg: number) => boolean;
|
297
|
+
settingChange: (_args: {
|
298
|
+
checked: string[];
|
299
|
+
size: string;
|
300
|
+
height: number;
|
301
|
+
fields: Record<string, any>[];
|
302
|
+
}) => boolean;
|
303
|
+
scrollBottom: (_args: {
|
304
|
+
translateX: number;
|
305
|
+
translateY: number;
|
306
|
+
scrollTop: number;
|
307
|
+
scrollLeft: number;
|
308
|
+
bottom: number;
|
309
|
+
}) => boolean;
|
310
|
+
cellClick: (_args: {
|
311
|
+
event: MouseEvent;
|
312
|
+
row: any;
|
313
|
+
column: import("./props").Column;
|
314
|
+
cell: {
|
315
|
+
getValue: () => string;
|
316
|
+
};
|
317
|
+
rowIndex: number;
|
318
|
+
columnIndex: number;
|
319
|
+
}) => boolean;
|
320
|
+
cellDblclick: (_args: {
|
321
|
+
event: MouseEvent;
|
322
|
+
row: any;
|
323
|
+
column: import("./props").Column;
|
324
|
+
cell: {
|
325
|
+
getValue: () => string;
|
326
|
+
};
|
327
|
+
rowIndex: number;
|
328
|
+
columnIndex: number;
|
329
|
+
}) => boolean;
|
330
|
+
rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
331
|
+
rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
332
|
+
dragend: (_args: {
|
333
|
+
sourceEvent: DragEvent;
|
334
|
+
data: any[];
|
335
|
+
}) => boolean;
|
336
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
|
176
337
|
data: import("vue-types").VueTypeDef<any[]> & {
|
177
338
|
default: () => any[];
|
178
339
|
};
|
@@ -335,17 +496,94 @@ declare const BkTable: {
|
|
335
496
|
} & {
|
336
497
|
default: boolean;
|
337
498
|
};
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
};
|
343
|
-
|
499
|
+
}>> & {
|
500
|
+
onDragend?: (_args: {
|
501
|
+
sourceEvent: DragEvent;
|
502
|
+
data: any[];
|
503
|
+
}) => any;
|
504
|
+
onSelect?: (_args: {
|
505
|
+
row: any;
|
506
|
+
index: number;
|
507
|
+
checked: string;
|
508
|
+
data: any[];
|
509
|
+
}) => any;
|
510
|
+
onCellClick?: (_args: {
|
511
|
+
event: MouseEvent;
|
512
|
+
row: any;
|
513
|
+
column: import("./props").Column;
|
514
|
+
cell: {
|
515
|
+
getValue: () => string;
|
516
|
+
};
|
517
|
+
rowIndex: number;
|
518
|
+
columnIndex: number;
|
519
|
+
}) => any;
|
520
|
+
onCellDblclick?: (_args: {
|
521
|
+
event: MouseEvent;
|
522
|
+
row: any;
|
523
|
+
column: import("./props").Column;
|
524
|
+
cell: {
|
525
|
+
getValue: () => string;
|
526
|
+
};
|
527
|
+
rowIndex: number;
|
528
|
+
columnIndex: number;
|
529
|
+
}) => any;
|
530
|
+
onColumnFilter?: (_args: {
|
531
|
+
checked: string[];
|
532
|
+
column: import("./props").Column;
|
533
|
+
index: number;
|
534
|
+
}) => any;
|
535
|
+
onColFilterSave?: (_args: {
|
536
|
+
column: import("./props").Column;
|
537
|
+
values: any[];
|
538
|
+
}) => any;
|
539
|
+
onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
|
540
|
+
onColumnSort?: (_args: {
|
541
|
+
column: import("./props").Column;
|
542
|
+
index: number;
|
543
|
+
type: import("./const").SORT_OPTION;
|
544
|
+
}) => any;
|
545
|
+
onPageLimitChange?: (_arg: number) => any;
|
546
|
+
onPageValueChange?: (_arg: number) => any;
|
547
|
+
onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
548
|
+
onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
549
|
+
onRowExpand?: (_args: {
|
550
|
+
row: any;
|
551
|
+
column: import("./props").Column;
|
552
|
+
index: number;
|
553
|
+
rows: any[];
|
554
|
+
e: MouseEvent;
|
555
|
+
}) => any;
|
556
|
+
onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
557
|
+
onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
558
|
+
onSelectAll?: (_args: {
|
559
|
+
checked: string;
|
560
|
+
data: any[];
|
561
|
+
}) => any;
|
562
|
+
onSelectionChange?: (_args: {
|
563
|
+
row: any;
|
564
|
+
index: number;
|
565
|
+
checked: string;
|
566
|
+
data: any[];
|
567
|
+
isAll: boolean;
|
568
|
+
}) => any;
|
569
|
+
onScrollBottom?: (_args: {
|
570
|
+
translateX: number;
|
571
|
+
translateY: number;
|
572
|
+
scrollTop: number;
|
573
|
+
scrollLeft: number;
|
574
|
+
bottom: number;
|
575
|
+
}) => any;
|
576
|
+
onSettingChange?: (_args: {
|
577
|
+
checked: string[];
|
578
|
+
size: string;
|
579
|
+
height: number;
|
580
|
+
fields: Record<string, any>[];
|
581
|
+
}) => any;
|
582
|
+
}, {
|
344
583
|
data: any[];
|
345
584
|
thead: import("./props").Thead;
|
346
585
|
height: string | number;
|
347
586
|
maxHeight: string | number;
|
348
|
-
scrollbar: boolean;
|
349
587
|
border: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
|
350
588
|
pagination: boolean | {
|
351
589
|
[key: string]: any;
|
@@ -555,17 +793,94 @@ declare const BkTable: {
|
|
555
793
|
} & {
|
556
794
|
default: boolean;
|
557
795
|
};
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
};
|
563
|
-
|
796
|
+
}>> & {
|
797
|
+
onDragend?: (_args: {
|
798
|
+
sourceEvent: DragEvent;
|
799
|
+
data: any[];
|
800
|
+
}) => any;
|
801
|
+
onSelect?: (_args: {
|
802
|
+
row: any;
|
803
|
+
index: number;
|
804
|
+
checked: string;
|
805
|
+
data: any[];
|
806
|
+
}) => any;
|
807
|
+
onCellClick?: (_args: {
|
808
|
+
event: MouseEvent;
|
809
|
+
row: any;
|
810
|
+
column: import("./props").Column;
|
811
|
+
cell: {
|
812
|
+
getValue: () => string;
|
813
|
+
};
|
814
|
+
rowIndex: number;
|
815
|
+
columnIndex: number;
|
816
|
+
}) => any;
|
817
|
+
onCellDblclick?: (_args: {
|
818
|
+
event: MouseEvent;
|
819
|
+
row: any;
|
820
|
+
column: import("./props").Column;
|
821
|
+
cell: {
|
822
|
+
getValue: () => string;
|
823
|
+
};
|
824
|
+
rowIndex: number;
|
825
|
+
columnIndex: number;
|
826
|
+
}) => any;
|
827
|
+
onColumnFilter?: (_args: {
|
828
|
+
checked: string[];
|
829
|
+
column: import("./props").Column;
|
830
|
+
index: number;
|
831
|
+
}) => any;
|
832
|
+
onColFilterSave?: (_args: {
|
833
|
+
column: import("./props").Column;
|
834
|
+
values: any[];
|
835
|
+
}) => any;
|
836
|
+
onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
|
837
|
+
onColumnSort?: (_args: {
|
838
|
+
column: import("./props").Column;
|
839
|
+
index: number;
|
840
|
+
type: import("./const").SORT_OPTION;
|
841
|
+
}) => any;
|
842
|
+
onPageLimitChange?: (_arg: number) => any;
|
843
|
+
onPageValueChange?: (_arg: number) => any;
|
844
|
+
onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
845
|
+
onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
846
|
+
onRowExpand?: (_args: {
|
847
|
+
row: any;
|
848
|
+
column: import("./props").Column;
|
849
|
+
index: number;
|
850
|
+
rows: any[];
|
851
|
+
e: MouseEvent;
|
852
|
+
}) => any;
|
853
|
+
onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
854
|
+
onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
855
|
+
onSelectAll?: (_args: {
|
856
|
+
checked: string;
|
857
|
+
data: any[];
|
858
|
+
}) => any;
|
859
|
+
onSelectionChange?: (_args: {
|
860
|
+
row: any;
|
861
|
+
index: number;
|
862
|
+
checked: string;
|
863
|
+
data: any[];
|
864
|
+
isAll: boolean;
|
865
|
+
}) => any;
|
866
|
+
onScrollBottom?: (_args: {
|
867
|
+
translateX: number;
|
868
|
+
translateY: number;
|
869
|
+
scrollTop: number;
|
870
|
+
scrollLeft: number;
|
871
|
+
bottom: number;
|
872
|
+
}) => any;
|
873
|
+
onSettingChange?: (_args: {
|
874
|
+
checked: string[];
|
875
|
+
size: string;
|
876
|
+
height: number;
|
877
|
+
fields: Record<string, any>[];
|
878
|
+
}) => any;
|
879
|
+
}, () => JSX.Element, {}, {}, {}, {
|
564
880
|
data: any[];
|
565
881
|
thead: import("./props").Thead;
|
566
882
|
height: string | number;
|
567
883
|
maxHeight: string | number;
|
568
|
-
scrollbar: boolean;
|
569
884
|
border: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
|
570
885
|
pagination: boolean | {
|
571
886
|
[key: string]: any;
|
@@ -772,17 +1087,177 @@ declare const BkTable: {
|
|
772
1087
|
} & {
|
773
1088
|
default: boolean;
|
774
1089
|
};
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
};
|
780
|
-
|
1090
|
+
}>> & {
|
1091
|
+
onDragend?: (_args: {
|
1092
|
+
sourceEvent: DragEvent;
|
1093
|
+
data: any[];
|
1094
|
+
}) => any;
|
1095
|
+
onSelect?: (_args: {
|
1096
|
+
row: any;
|
1097
|
+
index: number;
|
1098
|
+
checked: string;
|
1099
|
+
data: any[];
|
1100
|
+
}) => any;
|
1101
|
+
onCellClick?: (_args: {
|
1102
|
+
event: MouseEvent;
|
1103
|
+
row: any;
|
1104
|
+
column: import("./props").Column;
|
1105
|
+
cell: {
|
1106
|
+
getValue: () => string;
|
1107
|
+
};
|
1108
|
+
rowIndex: number;
|
1109
|
+
columnIndex: number;
|
1110
|
+
}) => any;
|
1111
|
+
onCellDblclick?: (_args: {
|
1112
|
+
event: MouseEvent;
|
1113
|
+
row: any;
|
1114
|
+
column: import("./props").Column;
|
1115
|
+
cell: {
|
1116
|
+
getValue: () => string;
|
1117
|
+
};
|
1118
|
+
rowIndex: number;
|
1119
|
+
columnIndex: number;
|
1120
|
+
}) => any;
|
1121
|
+
onColumnFilter?: (_args: {
|
1122
|
+
checked: string[];
|
1123
|
+
column: import("./props").Column;
|
1124
|
+
index: number;
|
1125
|
+
}) => any;
|
1126
|
+
onColFilterSave?: (_args: {
|
1127
|
+
column: import("./props").Column;
|
1128
|
+
values: any[];
|
1129
|
+
}) => any;
|
1130
|
+
onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
|
1131
|
+
onColumnSort?: (_args: {
|
1132
|
+
column: import("./props").Column;
|
1133
|
+
index: number;
|
1134
|
+
type: import("./const").SORT_OPTION;
|
1135
|
+
}) => any;
|
1136
|
+
onPageLimitChange?: (_arg: number) => any;
|
1137
|
+
onPageValueChange?: (_arg: number) => any;
|
1138
|
+
onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
1139
|
+
onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
1140
|
+
onRowExpand?: (_args: {
|
1141
|
+
row: any;
|
1142
|
+
column: import("./props").Column;
|
1143
|
+
index: number;
|
1144
|
+
rows: any[];
|
1145
|
+
e: MouseEvent;
|
1146
|
+
}) => any;
|
1147
|
+
onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
1148
|
+
onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
1149
|
+
onSelectAll?: (_args: {
|
1150
|
+
checked: string;
|
1151
|
+
data: any[];
|
1152
|
+
}) => any;
|
1153
|
+
onSelectionChange?: (_args: {
|
1154
|
+
row: any;
|
1155
|
+
index: number;
|
1156
|
+
checked: string;
|
1157
|
+
data: any[];
|
1158
|
+
isAll: boolean;
|
1159
|
+
}) => any;
|
1160
|
+
onScrollBottom?: (_args: {
|
1161
|
+
translateX: number;
|
1162
|
+
translateY: number;
|
1163
|
+
scrollTop: number;
|
1164
|
+
scrollLeft: number;
|
1165
|
+
bottom: number;
|
1166
|
+
}) => any;
|
1167
|
+
onSettingChange?: (_args: {
|
1168
|
+
checked: string[];
|
1169
|
+
size: string;
|
1170
|
+
height: number;
|
1171
|
+
fields: Record<string, any>[];
|
1172
|
+
}) => any;
|
1173
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
1174
|
+
columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
|
1175
|
+
columnFilter: (_args: {
|
1176
|
+
checked: string[];
|
1177
|
+
column: import("./props").Column;
|
1178
|
+
index: number;
|
1179
|
+
}) => boolean;
|
1180
|
+
columnSort: (_args: {
|
1181
|
+
column: import("./props").Column;
|
1182
|
+
index: number;
|
1183
|
+
type: import("./const").SORT_OPTION;
|
1184
|
+
}) => boolean;
|
1185
|
+
colFilterSave: (_args: {
|
1186
|
+
column: import("./props").Column;
|
1187
|
+
values: any[];
|
1188
|
+
}) => boolean;
|
1189
|
+
rowClick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
1190
|
+
rowDblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
1191
|
+
rowExpand: (_args: {
|
1192
|
+
row: any;
|
1193
|
+
column: import("./props").Column;
|
1194
|
+
index: number;
|
1195
|
+
rows: any[];
|
1196
|
+
e: MouseEvent;
|
1197
|
+
}) => boolean;
|
1198
|
+
select: (_args: {
|
1199
|
+
row: any;
|
1200
|
+
index: number;
|
1201
|
+
checked: string;
|
1202
|
+
data: any[];
|
1203
|
+
}) => boolean;
|
1204
|
+
selectAll: (_args: {
|
1205
|
+
checked: string;
|
1206
|
+
data: any[];
|
1207
|
+
}) => boolean;
|
1208
|
+
selectionChange: (_args: {
|
1209
|
+
row: any;
|
1210
|
+
index: number;
|
1211
|
+
checked: string;
|
1212
|
+
data: any[];
|
1213
|
+
isAll: boolean;
|
1214
|
+
}) => boolean;
|
1215
|
+
pageLimitChange: (_arg: number) => boolean;
|
1216
|
+
pageValueChange: (_arg: number) => boolean;
|
1217
|
+
settingChange: (_args: {
|
1218
|
+
checked: string[];
|
1219
|
+
size: string;
|
1220
|
+
height: number;
|
1221
|
+
fields: Record<string, any>[];
|
1222
|
+
}) => boolean;
|
1223
|
+
scrollBottom: (_args: {
|
1224
|
+
translateX: number;
|
1225
|
+
translateY: number;
|
1226
|
+
scrollTop: number;
|
1227
|
+
scrollLeft: number;
|
1228
|
+
bottom: number;
|
1229
|
+
}) => boolean;
|
1230
|
+
cellClick: (_args: {
|
1231
|
+
event: MouseEvent;
|
1232
|
+
row: any;
|
1233
|
+
column: import("./props").Column;
|
1234
|
+
cell: {
|
1235
|
+
getValue: () => string;
|
1236
|
+
};
|
1237
|
+
rowIndex: number;
|
1238
|
+
columnIndex: number;
|
1239
|
+
}) => boolean;
|
1240
|
+
cellDblclick: (_args: {
|
1241
|
+
event: MouseEvent;
|
1242
|
+
row: any;
|
1243
|
+
column: import("./props").Column;
|
1244
|
+
cell: {
|
1245
|
+
getValue: () => string;
|
1246
|
+
};
|
1247
|
+
rowIndex: number;
|
1248
|
+
columnIndex: number;
|
1249
|
+
}) => boolean;
|
1250
|
+
rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
1251
|
+
rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
1252
|
+
dragend: (_args: {
|
1253
|
+
sourceEvent: DragEvent;
|
1254
|
+
data: any[];
|
1255
|
+
}) => boolean;
|
1256
|
+
}, string, {
|
781
1257
|
data: any[];
|
782
1258
|
thead: import("./props").Thead;
|
783
1259
|
height: string | number;
|
784
1260
|
maxHeight: string | number;
|
785
|
-
scrollbar: boolean;
|
786
1261
|
border: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
|
787
1262
|
pagination: boolean | {
|
788
1263
|
[key: string]: any;
|
@@ -896,7 +1371,6 @@ declare const BkTable: {
|
|
896
1371
|
showOverflowTooltip?: boolean | {
|
897
1372
|
content: string | ((col: import("./props").Column, row: any) => string);
|
898
1373
|
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
899
|
-
allowHtml?: boolean;
|
900
1374
|
watchCellResize?: boolean;
|
901
1375
|
mode?: "auto" | "static";
|
902
1376
|
popoverOption?: any;
|