bkui-vue 2.0.1-beta.15 → 2.0.1-beta.15.table.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.
Files changed (195) hide show
  1. package/dist/index.cjs.js +63 -63
  2. package/dist/index.esm.js +15152 -15326
  3. package/dist/index.umd.js +63 -63
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +129 -0
  7. package/lib/affix/affix.variable.css +258 -0
  8. package/lib/alert/alert.css +132 -3
  9. package/lib/alert/alert.variable.css +258 -0
  10. package/lib/backtop/backtop.css +132 -3
  11. package/lib/backtop/backtop.variable.css +390 -3
  12. package/lib/badge/badge.css +155 -26
  13. package/lib/badge/badge.variable.css +258 -0
  14. package/lib/breadcrumb/breadcrumb.css +134 -5
  15. package/lib/breadcrumb/breadcrumb.variable.css +392 -5
  16. package/lib/button/button.css +272 -143
  17. package/lib/button/button.variable.css +258 -0
  18. package/lib/button/index.js +0 -1
  19. package/lib/card/card.css +133 -4
  20. package/lib/card/card.variable.css +391 -4
  21. package/lib/cascader/cascader.css +152 -23
  22. package/lib/cascader/cascader.variable.css +410 -23
  23. package/lib/checkbox/checkbox.css +138 -9
  24. package/lib/checkbox/checkbox.variable.css +258 -0
  25. package/lib/code-diff/code-diff.css +129 -0
  26. package/lib/code-diff/code-diff.variable.css +258 -0
  27. package/lib/collapse/collapse.css +130 -1
  28. package/lib/collapse/collapse.variable.css +258 -0
  29. package/lib/collapse-transition/collapse-transition.css +129 -0
  30. package/lib/collapse-transition/collapse-transition.variable.css +258 -0
  31. package/lib/color-picker/color-picker.css +129 -0
  32. package/lib/color-picker/color-picker.variable.css +258 -0
  33. package/lib/config-provider/config-provider.css +129 -0
  34. package/lib/config-provider/config-provider.variable.css +258 -0
  35. package/lib/container/container.css +129 -0
  36. package/lib/container/container.variable.css +387 -0
  37. package/lib/container/index.js +0 -1
  38. package/lib/date-picker/date-picker.css +146 -17
  39. package/lib/date-picker/date-picker.variable.css +258 -0
  40. package/lib/date-picker/index.js +1 -0
  41. package/lib/date-picker/panel/date-range.d.ts +4 -4
  42. package/lib/dialog/dialog.css +137 -8
  43. package/lib/dialog/dialog.variable.css +395 -8
  44. package/lib/divider/divider.css +132 -3
  45. package/lib/divider/divider.variable.css +258 -0
  46. package/lib/dropdown/dropdown.css +129 -0
  47. package/lib/dropdown/dropdown.variable.css +387 -0
  48. package/lib/exception/exception.css +129 -0
  49. package/lib/exception/exception.variable.css +258 -0
  50. package/lib/fixed-navbar/fixed-navbar.css +133 -4
  51. package/lib/fixed-navbar/fixed-navbar.variable.css +258 -0
  52. package/lib/form/form.css +129 -0
  53. package/lib/form/form.variable.css +258 -0
  54. package/lib/form/index.js +0 -1
  55. package/lib/image/image-viewer.css +129 -0
  56. package/lib/image/image-viewer.variable.css +258 -0
  57. package/lib/image/image.css +129 -0
  58. package/lib/image/image.variable.css +387 -0
  59. package/lib/image/index.js +0 -1
  60. package/lib/index.js +1 -1
  61. package/lib/info-box/info-box.css +133 -4
  62. package/lib/info-box/info-box.variable.css +258 -0
  63. package/lib/input/index.js +0 -1
  64. package/lib/input/input.css +201 -72
  65. package/lib/input/input.variable.css +459 -72
  66. package/lib/link/link.css +145 -16
  67. package/lib/link/link.variable.css +258 -0
  68. package/lib/loading/loading.css +145 -16
  69. package/lib/loading/loading.variable.css +403 -16
  70. package/lib/menu/menu.css +147 -18
  71. package/lib/menu/menu.variable.css +405 -18
  72. package/lib/menu/submenu.css +129 -0
  73. package/lib/menu/submenu.variable.css +258 -0
  74. package/lib/message/message.css +150 -21
  75. package/lib/message/message.variable.css +258 -0
  76. package/lib/modal/modal.css +133 -4
  77. package/lib/modal/modal.variable.css +391 -4
  78. package/lib/navigation/navigation.css +131 -2
  79. package/lib/navigation/navigation.variable.css +258 -0
  80. package/lib/notify/notify.css +136 -7
  81. package/lib/notify/notify.variable.css +258 -0
  82. package/lib/pagination/pagination.css +130 -1
  83. package/lib/pagination/pagination.variable.css +258 -0
  84. package/lib/plugin-popover/index.js +0 -1
  85. package/lib/pop-confirm/pop-confirm.css +129 -0
  86. package/lib/pop-confirm/pop-confirm.variable.css +258 -0
  87. package/lib/popover/index.js +0 -1
  88. package/lib/popover/popover.css +129 -0
  89. package/lib/popover/popover.variable.css +258 -0
  90. package/lib/process/process.css +142 -13
  91. package/lib/process/process.variable.css +258 -0
  92. package/lib/progress/index.js +0 -1
  93. package/lib/progress/progress.css +133 -4
  94. package/lib/progress/progress.variable.css +391 -4
  95. package/lib/radio/radio.css +171 -42
  96. package/lib/radio/radio.variable.css +258 -0
  97. package/lib/rate/rate.css +129 -0
  98. package/lib/rate/rate.variable.css +258 -0
  99. package/lib/resize-layout/resize-layout.css +129 -0
  100. package/lib/resize-layout/resize-layout.variable.css +258 -0
  101. package/lib/scrollbar/scrollbar.css +129 -0
  102. package/lib/scrollbar/scrollbar.variable.css +258 -0
  103. package/lib/search-select/search-select.css +162 -33
  104. package/lib/search-select/search-select.variable.css +420 -33
  105. package/lib/select/index.js +0 -2
  106. package/lib/select/select.css +168 -39
  107. package/lib/select/select.variable.css +426 -39
  108. package/lib/sideslider/sideslider.css +130 -1
  109. package/lib/sideslider/sideslider.variable.css +258 -0
  110. package/lib/slider/slider.css +134 -5
  111. package/lib/slider/slider.variable.css +258 -0
  112. package/lib/steps/steps.css +167 -38
  113. package/lib/steps/steps.variable.css +258 -0
  114. package/lib/styles/mixins/animate.css +129 -0
  115. package/lib/styles/mixins/animate.variable.css +258 -0
  116. package/lib/styles/mixins/mixins.css +129 -0
  117. package/lib/styles/mixins/mixins.variable.css +129 -0
  118. package/lib/styles/mixins/popper.css +129 -0
  119. package/lib/styles/mixins/popper.variable.css +258 -0
  120. package/lib/styles/mixins/scroll.css +129 -0
  121. package/lib/styles/mixins/scroll.variable.css +258 -0
  122. package/lib/styles/reset.css +129 -0
  123. package/lib/styles/reset.variable.css +258 -0
  124. package/lib/styles/themes/themes.css +129 -0
  125. package/lib/styles/themes/themes.less +306 -127
  126. package/lib/styles/themes/themes.variable.css +129 -0
  127. package/lib/swiper/swiper.css +129 -0
  128. package/lib/swiper/swiper.variable.css +258 -0
  129. package/lib/switcher/switcher.css +146 -17
  130. package/lib/switcher/switcher.variable.css +404 -17
  131. package/lib/tab/tab.css +146 -17
  132. package/lib/tab/tab.variable.css +258 -0
  133. package/lib/table/const.d.ts +12 -0
  134. package/lib/table/events.d.ts +2 -98
  135. package/lib/table/hooks/use-column-resize.d.ts +5 -0
  136. package/lib/table/{plugins → hooks}/use-column-template.d.ts +1 -2
  137. package/lib/table/hooks/use-columns.d.ts +53 -0
  138. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  139. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  140. package/lib/table/hooks/use-head.d.ts +15 -0
  141. package/lib/table/hooks/use-layout.d.ts +20 -0
  142. package/lib/table/hooks/use-pagination.d.ts +16 -0
  143. package/lib/table/hooks/use-render.d.ts +23 -0
  144. package/lib/table/hooks/use-rows.d.ts +25 -0
  145. package/lib/table/hooks/use-settings.d.ts +23 -0
  146. package/lib/table/index.d.ts +27 -502
  147. package/lib/table/index.js +3125 -3524
  148. package/lib/table/plugins/head-filter.css +129 -0
  149. package/lib/table/plugins/head-filter.d.ts +2 -1
  150. package/lib/table/plugins/head-filter.variable.css +258 -0
  151. package/lib/table/plugins/head-sort.css +129 -0
  152. package/lib/table/plugins/head-sort.variable.css +258 -0
  153. package/lib/table/plugins/settings.css +130 -0
  154. package/lib/table/plugins/settings.less +1 -0
  155. package/lib/table/plugins/settings.variable.css +259 -0
  156. package/lib/table/props.d.ts +17 -8
  157. package/lib/table/table.css +321 -191
  158. package/lib/table/table.d.ts +18 -174
  159. package/lib/table/table.less +24 -22
  160. package/lib/table/table.variable.css +579 -191
  161. package/lib/table/utils.d.ts +24 -3
  162. package/lib/table-column/index.js +18 -2
  163. package/lib/tag/tag.css +134 -5
  164. package/lib/tag/tag.variable.css +258 -0
  165. package/lib/tag-input/tag-input.css +147 -18
  166. package/lib/tag-input/tag-input.variable.css +258 -0
  167. package/lib/time-picker/time-picker.css +129 -0
  168. package/lib/time-picker/time-picker.variable.css +258 -0
  169. package/lib/timeline/timeline.css +148 -19
  170. package/lib/timeline/timeline.variable.css +258 -0
  171. package/lib/transfer/transfer.css +148 -19
  172. package/lib/transfer/transfer.variable.css +258 -0
  173. package/lib/tree/tree.css +138 -9
  174. package/lib/tree/tree.variable.css +396 -9
  175. package/lib/upload/upload.css +156 -27
  176. package/lib/upload/upload.variable.css +414 -27
  177. package/lib/virtual-render/index.js +1 -1
  178. package/lib/virtual-render/virtual-render.css +129 -0
  179. package/lib/virtual-render/virtual-render.variable.css +387 -0
  180. package/package.json +1 -1
  181. package/lib/table/plugins/col-group.d.ts +0 -38
  182. package/lib/table/plugins/settings.d.ts +0 -16
  183. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  184. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  185. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  186. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  187. package/lib/table/plugins/use-pagination.d.ts +0 -23
  188. package/lib/table/use-attributes.d.ts +0 -62
  189. package/lib/table/use-column.d.ts +0 -155
  190. package/lib/table/use-common.d.ts +0 -1679
  191. package/lib/table/use-render.d.ts +0 -11
  192. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  193. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  194. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
  195. /package/lib/table/{plugins → hooks}/use-shift-key.d.ts +0 -0
@@ -1,10 +1,9 @@
1
- import { Column } from './props';
2
1
  declare const _default: import("vue").DefineComponent<{
3
2
  data: import("vue-types").VueTypeDef<any[]> & {
4
3
  default: () => any[];
5
4
  };
6
- columns: import("vue-types").VueTypeDef<Column[]> & {
7
- default: () => Column[];
5
+ columns: import("vue-types").VueTypeDef<import("./props").Column[]> & {
6
+ default: () => import("./props").Column[];
8
7
  };
9
8
  activeColumn: import("vue-types").VueTypeDef<number | number[]>;
10
9
  columnPick: import("vue-types").VueTypeDef<"disabled" | "single" | "multi"> & {
@@ -162,95 +161,17 @@ declare const _default: import("vue").DefineComponent<{
162
161
  } & {
163
162
  default: boolean;
164
163
  };
165
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
166
- columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
167
- columnFilter: (_args: {
168
- checked: string[];
169
- column: Column;
170
- index: number;
171
- }) => boolean;
172
- columnSort: (_args: {
173
- column: Column;
174
- index: number;
175
- type: import("./const").SORT_OPTION;
176
- }) => boolean;
177
- colFilterSave: (_args: {
178
- column: Column;
179
- values: any[];
180
- }) => boolean;
181
- rowClick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
182
- rowDblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
183
- rowExpand: (_args: {
184
- row: any;
185
- column: Column;
186
- index: number;
187
- rows: any[];
188
- e: MouseEvent;
189
- }) => boolean;
190
- select: (_args: {
191
- row: any;
192
- index: number;
193
- checked: string;
194
- data: any[];
195
- }) => boolean;
196
- selectAll: (_args: {
197
- checked: string;
198
- data: any[];
199
- }) => boolean;
200
- selectionChange: (_args: {
201
- row: any;
202
- index: number;
203
- checked: string;
204
- data: any[];
205
- isAll: boolean;
206
- }) => boolean;
207
- pageLimitChange: (_arg: number) => boolean;
208
- pageValueChange: (_arg: number) => boolean;
209
- settingChange: (_args: {
210
- checked: string[];
211
- size: string;
212
- height: number;
213
- fields: Record<string, any>[];
214
- }) => boolean;
215
- scrollBottom: (_args: {
216
- translateX: number;
217
- translateY: number;
218
- scrollTop: number;
219
- scrollLeft: number;
220
- bottom: number;
221
- }) => boolean;
222
- cellClick: (_args: {
223
- event: MouseEvent;
224
- row: any;
225
- column: Column;
226
- cell: {
227
- getValue: () => string;
228
- };
229
- rowIndex: number;
230
- columnIndex: number;
231
- }) => boolean;
232
- cellDblclick: (_args: {
233
- event: MouseEvent;
234
- row: any;
235
- column: Column;
236
- cell: {
237
- getValue: () => string;
238
- };
239
- rowIndex: number;
240
- columnIndex: number;
241
- }) => boolean;
242
- rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
243
- rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
244
- dragend: (_args: {
245
- sourceEvent: DragEvent;
246
- data: any[];
247
- }) => boolean;
248
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
164
+ scrollbar: import("vue-types").VueTypeValidableDef<boolean> & {
165
+ default: boolean;
166
+ } & {
167
+ default: boolean;
168
+ };
169
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
249
170
  data: import("vue-types").VueTypeDef<any[]> & {
250
171
  default: () => any[];
251
172
  };
252
- columns: import("vue-types").VueTypeDef<Column[]> & {
253
- default: () => Column[];
173
+ columns: import("vue-types").VueTypeDef<import("./props").Column[]> & {
174
+ default: () => import("./props").Column[];
254
175
  };
255
176
  activeColumn: import("vue-types").VueTypeDef<number | number[]>;
256
177
  columnPick: import("vue-types").VueTypeDef<"disabled" | "single" | "multi"> & {
@@ -408,94 +329,17 @@ declare const _default: import("vue").DefineComponent<{
408
329
  } & {
409
330
  default: boolean;
410
331
  };
411
- }>> & {
412
- onDragend?: (_args: {
413
- sourceEvent: DragEvent;
414
- data: any[];
415
- }) => any;
416
- onSelect?: (_args: {
417
- row: any;
418
- index: number;
419
- checked: string;
420
- data: any[];
421
- }) => any;
422
- onCellClick?: (_args: {
423
- event: MouseEvent;
424
- row: any;
425
- column: Column;
426
- cell: {
427
- getValue: () => string;
428
- };
429
- rowIndex: number;
430
- columnIndex: number;
431
- }) => any;
432
- onCellDblclick?: (_args: {
433
- event: MouseEvent;
434
- row: any;
435
- column: Column;
436
- cell: {
437
- getValue: () => string;
438
- };
439
- rowIndex: number;
440
- columnIndex: number;
441
- }) => any;
442
- onColumnFilter?: (_args: {
443
- checked: string[];
444
- column: Column;
445
- index: number;
446
- }) => any;
447
- onColFilterSave?: (_args: {
448
- column: Column;
449
- values: any[];
450
- }) => any;
451
- onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
452
- onColumnSort?: (_args: {
453
- column: Column;
454
- index: number;
455
- type: import("./const").SORT_OPTION;
456
- }) => any;
457
- onPageLimitChange?: (_arg: number) => any;
458
- onPageValueChange?: (_arg: number) => any;
459
- onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
460
- onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
461
- onRowExpand?: (_args: {
462
- row: any;
463
- column: Column;
464
- index: number;
465
- rows: any[];
466
- e: MouseEvent;
467
- }) => any;
468
- onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
469
- onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
470
- onSelectAll?: (_args: {
471
- checked: string;
472
- data: any[];
473
- }) => any;
474
- onSelectionChange?: (_args: {
475
- row: any;
476
- index: number;
477
- checked: string;
478
- data: any[];
479
- isAll: boolean;
480
- }) => any;
481
- onScrollBottom?: (_args: {
482
- translateX: number;
483
- translateY: number;
484
- scrollTop: number;
485
- scrollLeft: number;
486
- bottom: number;
487
- }) => any;
488
- onSettingChange?: (_args: {
489
- checked: string[];
490
- size: string;
491
- height: number;
492
- fields: Record<string, any>[];
493
- }) => any;
494
- }, {
332
+ scrollbar: import("vue-types").VueTypeValidableDef<boolean> & {
333
+ default: boolean;
334
+ } & {
335
+ default: boolean;
336
+ };
337
+ }>>, {
495
338
  data: any[];
496
339
  thead: import("./props").Thead;
497
340
  height: string | number;
498
341
  maxHeight: string | number;
342
+ scrollbar: boolean;
499
343
  border: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
500
344
  pagination: boolean | {
501
345
  [key: string]: any;
@@ -510,7 +354,7 @@ declare const _default: import("vue").DefineComponent<{
510
354
  [key: string]: any;
511
355
  };
512
356
  columnPick: "disabled" | "single" | "multi";
513
- columns: Column[];
357
+ columns: import("./props").Column[];
514
358
  stripe: boolean;
515
359
  rowHeight: import("./props").RowHeightFunctionNumber;
516
360
  showHead: boolean;
@@ -13,7 +13,7 @@
13
13
  .@{bk-prefix}-table {
14
14
  position: relative;
15
15
  width: 100%;
16
- height: auto;
16
+ height: 100%;
17
17
  overflow: hidden;
18
18
 
19
19
  &-flex {
@@ -35,7 +35,7 @@
35
35
  .@{bk-prefix}-table-body {
36
36
  position: relative;
37
37
  overflow: hidden;
38
- border-bottom: 1px solid @table-border-color;
38
+ // border-bottom: 1px solid @table-border-color;
39
39
 
40
40
  .prepend-row {
41
41
  transform: translateX(var(--prepend-left));
@@ -287,6 +287,7 @@
287
287
  td {
288
288
  &:not(.empty-cell) {
289
289
  background: @table-row-hover-bg-color;
290
+ border-right: @table-row-hover-bg-color;
290
291
  }
291
292
  }
292
293
  }
@@ -448,34 +449,29 @@
448
449
  position: absolute;
449
450
  top: 0;
450
451
  right: 0;
451
- bottom: var(--footer-height);
452
+ bottom: 0;
452
453
  left: 0;
453
454
  pointer-events: none;
454
455
 
455
- .column_fixed {
456
- position: absolute;
457
- z-index: 2;
458
-
459
- &.column_fixed_left {
460
- top: 0;
461
- left: 0;
462
-
463
- &.shadow {
464
- box-shadow: 0 0 10px rgb(0 0 0 / 12%);
465
- }
456
+ &.shadow-left {
457
+ .column_fixed_left {
458
+ box-shadow: 0 0 10px rgb(0 0 0 / 12%);
466
459
  }
460
+ }
467
461
 
468
- &.column_fixed_right {
469
- top: 0;
470
- right: 0;
471
-
472
-
473
- &.shadow {
474
- box-shadow: 0 0 10px rgb(0 0 0 / 12%);
475
- }
462
+ &.shadow-right {
463
+ .column_fixed_right {
464
+ box-shadow: 0 0 10px rgb(0 0 0 / 12%);
476
465
  }
477
466
  }
478
467
 
468
+ .column_fixed {
469
+ position: absolute;
470
+ z-index: 2;
471
+ bottom: 0;
472
+ top: 0;
473
+ }
474
+
479
475
  .scroll-loading {
480
476
  &._bottom {
481
477
  position: absolute;
@@ -489,6 +485,12 @@
489
485
  }
490
486
  }
491
487
 
488
+ .@{bk-prefix}-table-fixed-bottom {
489
+ position: absolute;
490
+ right: 0;
491
+ bottom: 0;
492
+ left: 0;
493
+ }
492
494
  colgroup {
493
495
  col {
494
496
  background: @table-bg-color;