bkui-vue 2.0.1-beta.72.fix.1 → 2.0.1-beta.73

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 (66) hide show
  1. package/dist/index.cjs.js +45 -45
  2. package/dist/index.esm.js +13514 -13416
  3. package/dist/index.umd.js +59 -59
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/cascader/index.js +8 -6
  7. package/lib/color-picker/color-picker.d.ts +16 -0
  8. package/lib/color-picker/index.d.ts +23 -0
  9. package/lib/color-picker/index.js +8 -1
  10. package/lib/dialog/dialog.d.ts +6 -6
  11. package/lib/dialog/index.d.ts +12 -12
  12. package/lib/dialog/index.js +3 -1
  13. package/lib/dialog/props.d.ts +3 -3
  14. package/lib/index.js +1 -1
  15. package/lib/input/index.js +42 -521
  16. package/lib/input/input.css +23 -1
  17. package/lib/input/input.less +30 -1
  18. package/lib/input/input.variable.css +23 -1
  19. package/lib/modal/index.d.ts +13 -13
  20. package/lib/modal/index.js +7 -7
  21. package/lib/modal/modal.d.ts +5 -5
  22. package/lib/modal/props.mixin.d.ts +2 -2
  23. package/lib/plugin-popover/index.js +2 -1
  24. package/lib/popover/index.js +2 -1
  25. package/lib/resize-layout/index.js +4 -0
  26. package/lib/search-select/index.d.ts +60 -6
  27. package/lib/search-select/index.js +201 -89
  28. package/lib/search-select/input.d.ts +12 -2
  29. package/lib/search-select/menu.d.ts +12 -0
  30. package/lib/search-select/search-select.css +0 -1
  31. package/lib/search-select/search-select.d.ts +18 -4
  32. package/lib/search-select/search-select.less +1 -1
  33. package/lib/search-select/search-select.variable.css +0 -1
  34. package/lib/search-select/selected.d.ts +23 -0
  35. package/lib/select/common.d.ts +1 -1
  36. package/lib/select/index.d.ts +6 -0
  37. package/lib/select/index.js +35 -12
  38. package/lib/select/select.d.ts +2 -0
  39. package/lib/select/selectTagInput.d.ts +1 -0
  40. package/lib/select/type.d.ts +2 -2
  41. package/lib/sideslider/index.d.ts +11 -11
  42. package/lib/sideslider/sideslider.d.ts +5 -5
  43. package/lib/tab/index.d.ts +22 -0
  44. package/lib/tab/index.js +32 -10
  45. package/lib/tab/props.d.ts +10 -0
  46. package/lib/tab/tab-nav.d.ts +12 -2
  47. package/lib/tab/tab-panel.d.ts +22 -0
  48. package/lib/tab/tab.css +64 -0
  49. package/lib/tab/tab.less +91 -4
  50. package/lib/tab/tab.variable.css +64 -0
  51. package/lib/table/hooks/use-settings.d.ts +2 -0
  52. package/lib/table/index.js +66 -7
  53. package/lib/table/props.d.ts +5 -4
  54. package/lib/table/table.css +6 -0
  55. package/lib/table/table.less +14 -0
  56. package/lib/table/table.variable.css +6 -0
  57. package/lib/table/utils.d.ts +1 -0
  58. package/lib/tag-input/common.d.ts +1 -1
  59. package/lib/tag-input/index.d.ts +3 -0
  60. package/lib/tag-input/index.js +12 -3
  61. package/lib/tag-input/tag-input.css +9 -9
  62. package/lib/tag-input/tag-input.d.ts +3 -14
  63. package/lib/tag-input/tag-input.less +9 -9
  64. package/lib/tag-input/tag-input.variable.css +9 -9
  65. package/lib/upload/index.js +31 -9
  66. package/package.json +1 -1
package/lib/tab/tab.css CHANGED
@@ -156,6 +156,21 @@
156
156
  .bk-tab--right .bk-tab-header {
157
157
  flex-direction: column;
158
158
  }
159
+ .bk-tab--left .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num,
160
+ .bk-tab--right .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num {
161
+ width: 100%;
162
+ }
163
+ .bk-tab--left .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
164
+ .bk-tab--right .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
165
+ border-radius: 2px;
166
+ }
167
+ .bk-tab--left .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
168
+ .bk-tab--right .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
169
+ .bk-tab--left .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic,
170
+ .bk-tab--right .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
171
+ background-color: #A3C5FD;
172
+ color: var(--white-color);
173
+ }
159
174
  .bk-tab--left .bk-tab-header > div,
160
175
  .bk-tab--right .bk-tab-header > div {
161
176
  flex-direction: column;
@@ -167,6 +182,18 @@
167
182
  .bk-tab--card-tab .bk-tab-header {
168
183
  border-radius: 4px 4px 0;
169
184
  }
185
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
186
+ background-color: var(--white-color);
187
+ }
188
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
189
+ background-color: var(--white-color);
190
+ color: var(--default-color);
191
+ }
192
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
193
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
194
+ background-color: #A3C5FD;
195
+ color: var(--white-color);
196
+ }
170
197
  .bk-tab--card .bk-tab-header,
171
198
  .bk-tab--vertical-card .bk-tab-header {
172
199
  border-bottom: 1px solid var(--disable-color);
@@ -291,6 +318,35 @@
291
318
  padding-right: 12px;
292
319
  padding-left: 12px;
293
320
  }
321
+ .bk-tab-header-item .bk-tab-header--has-num {
322
+ display: flex;
323
+ align-items: center;
324
+ justify-content: space-between;
325
+ }
326
+ .bk-tab-header-item .bk-tab-header--has-num-right {
327
+ margin-left: 4px;
328
+ display: flex;
329
+ align-items: center;
330
+ color: var(--default-color);
331
+ }
332
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-default,
333
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-bracket {
334
+ color: var(--default-color);
335
+ }
336
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
337
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
338
+ background-color: #F0F1F5;
339
+ color: var(--gray-color);
340
+ padding: 0 8px;
341
+ line-height: 18px;
342
+ text-align: center;
343
+ }
344
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
345
+ border-radius: 2px;
346
+ }
347
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
348
+ border-radius: 18px;
349
+ }
294
350
  .bk-tab-header-item:hover {
295
351
  color: var(--primary-color);
296
352
  }
@@ -336,6 +392,14 @@
336
392
  .bk-tab--card-grid .bk-tab-header--active {
337
393
  background: #fff;
338
394
  }
395
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-bracket,
396
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
397
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
398
+ color: var(--primary-color);
399
+ }
400
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
401
+ background-color: #E1ECFF;
402
+ }
339
403
  .bk-tab-header--close {
340
404
  display: none;
341
405
  font-size: 16px;
package/lib/tab/tab.less CHANGED
@@ -6,6 +6,9 @@
6
6
  @tab-header-bg: #FAFBFD;
7
7
  @tab-white: @white-color;
8
8
  @tab-gray: @light-gray;
9
+ @tab-number-tag-gray: @gray-color;
10
+ @tab-card-number-active: #E1ECFF;
11
+ @tab-column-active: #A3C5FD;
9
12
  @tab-card-tab-bg: #F0F1F5;
10
13
  @tab-card-tab-divider: #c4c6cc;
11
14
  @tab-disable-color: #aaa;
@@ -42,7 +45,28 @@
42
45
 
43
46
  .@{bk-prefix}-tab--left &, .@{bk-prefix}-tab--right & {
44
47
  flex-direction: column;
45
-
48
+ .@{bk-prefix}-tab-header-item {
49
+ .@{bk-prefix}-tab-header--has-num {
50
+ width: 100%;
51
+ &-right {
52
+ .@{bk-prefix}-tab-header--has-num-square {
53
+ border-radius: 2px;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ .@{bk-prefix}-tab-header--active {
59
+ .@{bk-prefix}-tab-header--has-num {
60
+ &-right {
61
+ .@{bk-prefix}-tab-header--has-num-square,
62
+ .@{bk-prefix}-tab-header--has-num-elliptic {
63
+ background-color: @tab-column-active;
64
+ color: @tab-white;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
46
70
  > div {
47
71
  flex-direction: column;
48
72
  }
@@ -54,6 +78,30 @@
54
78
 
55
79
  .@{bk-prefix}-tab--card-tab & {
56
80
  border-radius: 4px 4px 0;
81
+ .@{bk-prefix}-tab-header-item {
82
+ .@{bk-prefix}-tab-header--has-num {
83
+ &-right {
84
+ .@{bk-prefix}-tab-header--has-num-square {
85
+ background-color: @tab-white;
86
+ }
87
+ .@{bk-prefix}-tab-header--has-num-elliptic {
88
+ background-color: @tab-white;
89
+ color: @tab-color;
90
+ }
91
+ }
92
+ }
93
+ }
94
+ .@{bk-prefix}-tab-header--active {
95
+ .@{bk-prefix}-tab-header--has-num {
96
+ &-right {
97
+ .@{bk-prefix}-tab-header--has-num-square,
98
+ .@{bk-prefix}-tab-header--has-num-elliptic {
99
+ background-color: @tab-column-active;
100
+ color: @tab-white;
101
+ }
102
+ }
103
+ }
104
+ }
57
105
  }
58
106
 
59
107
  .@{bk-prefix}-tab--card &, .@{bk-prefix}-tab--vertical-card & {
@@ -208,7 +256,36 @@
208
256
  padding-left: 12px;
209
257
  }
210
258
 
211
-
259
+ .@{bk-prefix}-tab-header--has-num {
260
+ display: flex;
261
+ align-items: center;
262
+ justify-content: space-between;
263
+ &-right {
264
+ margin-left: 4px;
265
+ display: flex;
266
+ align-items: center;
267
+ color: @tab-color;
268
+ .@{bk-prefix}-tab-header--has-num-default,
269
+ .@{bk-prefix}-tab-header--has-num-bracket {
270
+ color: @tab-color;
271
+ }
272
+ .@{bk-prefix}-tab-header--has-num-square,
273
+ .@{bk-prefix}-tab-header--has-num-elliptic {
274
+ background-color: @tab-card-tab-bg;
275
+ color: @tab-number-tag-gray;
276
+ padding: 0 8px;
277
+ line-height: 18px;
278
+ text-align: center;
279
+ }
280
+ .@{bk-prefix}-tab-header--has-num-square {
281
+ border-radius: 2px;
282
+ }
283
+ .@{bk-prefix}-tab-header--has-num-elliptic {
284
+ border-radius: 18px;
285
+ }
286
+ }
287
+ }
288
+
212
289
  &:hover {
213
290
  color: @tab-active;
214
291
 
@@ -218,7 +295,6 @@
218
295
  color: @danger-color;
219
296
  }
220
297
  }
221
-
222
298
  }
223
299
 
224
300
  &--active {
@@ -260,7 +336,18 @@
260
336
  border-left: 2px solid @tab-active;
261
337
  }
262
338
  */
263
-
339
+ .@{bk-prefix}-tab-header--has-num {
340
+ &-right {
341
+ .@{bk-prefix}-tab-header--has-num-bracket,
342
+ .@{bk-prefix}-tab-header--has-num-square,
343
+ .@{bk-prefix}-tab-header--has-num-elliptic {
344
+ color: @tab-active;
345
+ }
346
+ .@{bk-prefix}-tab-header--has-num-square {
347
+ background-color: @tab-card-number-active;
348
+ }
349
+ }
350
+ }
264
351
  }
265
352
 
266
353
  &--close {
@@ -416,6 +416,21 @@
416
416
  .bk-tab--right .bk-tab-header {
417
417
  flex-direction: column;
418
418
  }
419
+ .bk-tab--left .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num,
420
+ .bk-tab--right .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num {
421
+ width: 100%;
422
+ }
423
+ .bk-tab--left .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
424
+ .bk-tab--right .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
425
+ border-radius: 2px;
426
+ }
427
+ .bk-tab--left .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
428
+ .bk-tab--right .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
429
+ .bk-tab--left .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic,
430
+ .bk-tab--right .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
431
+ background-color: #A3C5FD;
432
+ color: var(--white-color);
433
+ }
419
434
  .bk-tab--left .bk-tab-header > div,
420
435
  .bk-tab--right .bk-tab-header > div {
421
436
  flex-direction: column;
@@ -427,6 +442,18 @@
427
442
  .bk-tab--card-tab .bk-tab-header {
428
443
  border-radius: 4px 4px 0;
429
444
  }
445
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
446
+ background-color: var(--white-color);
447
+ }
448
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
449
+ background-color: var(--white-color);
450
+ color: var(--default-color);
451
+ }
452
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
453
+ .bk-tab--card-tab .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
454
+ background-color: #A3C5FD;
455
+ color: var(--white-color);
456
+ }
430
457
  .bk-tab--card .bk-tab-header,
431
458
  .bk-tab--vertical-card .bk-tab-header {
432
459
  border-bottom: 1px solid var(--disable-color);
@@ -551,6 +578,35 @@
551
578
  padding-right: 12px;
552
579
  padding-left: 12px;
553
580
  }
581
+ .bk-tab-header-item .bk-tab-header--has-num {
582
+ display: flex;
583
+ align-items: center;
584
+ justify-content: space-between;
585
+ }
586
+ .bk-tab-header-item .bk-tab-header--has-num-right {
587
+ margin-left: 4px;
588
+ display: flex;
589
+ align-items: center;
590
+ color: var(--default-color);
591
+ }
592
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-default,
593
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-bracket {
594
+ color: var(--default-color);
595
+ }
596
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
597
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
598
+ background-color: #F0F1F5;
599
+ color: var(--gray-color);
600
+ padding: 0 8px;
601
+ line-height: 18px;
602
+ text-align: center;
603
+ }
604
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
605
+ border-radius: 2px;
606
+ }
607
+ .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
608
+ border-radius: 18px;
609
+ }
554
610
  .bk-tab-header-item:hover {
555
611
  color: var(--primary-color);
556
612
  }
@@ -596,6 +652,14 @@
596
652
  .bk-tab--card-grid .bk-tab-header--active {
597
653
  background: #fff;
598
654
  }
655
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-bracket,
656
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
657
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
658
+ color: var(--primary-color);
659
+ }
660
+ .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
661
+ background-color: #E1ECFF;
662
+ }
599
663
  .bk-tab-header--close {
600
664
  display: none;
601
665
  font-size: 16px;
@@ -36,6 +36,7 @@ declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: U
36
36
  label: string;
37
37
  text?: string;
38
38
  value: string;
39
+ tipKey?: string;
39
40
  }[];
40
41
  filterFn?: (...args: any[]) => boolean;
41
42
  match?: import("../props").FullEnum;
@@ -89,6 +90,7 @@ declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: U
89
90
  label: string;
90
91
  text?: string;
91
92
  value: string;
93
+ tipKey?: string;
92
94
  }[];
93
95
  filterFn?: (...args: any[]) => boolean;
94
96
  match?: import("../props").FullEnum;
@@ -17327,7 +17327,7 @@ function _objectDestructuringEmpty(obj) {
17327
17327
  ;// CONCATENATED MODULE: external "vue"
17328
17328
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17329
17329
  var external_vue_y = x => () => x
17330
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isRef, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
17330
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isRef, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
17331
17331
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
17332
17332
  function typeof_typeof(o) {
17333
17333
  "@babel/helpers - typeof";
@@ -21762,7 +21762,7 @@ const exception_less_namespaceObject = exception_less_x({ });
21762
21762
  ;// CONCATENATED MODULE: external "../directives"
21763
21763
  var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21764
21764
  var directives_y = x => () => x
21765
- const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance });
21765
+ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance, ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
21766
21766
  ;// CONCATENATED MODULE: ../../packages/table/src/components/table-cell.tsx
21767
21767
 
21768
21768
 
@@ -22433,12 +22433,16 @@ const input_less_namespaceObject = input_less_x({ });
22433
22433
 
22434
22434
 
22435
22435
 
22436
+
22436
22437
  function _isSlot(s) {
22437
22438
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
22438
22439
  }
22439
22440
  var ROW_HEIGHT = 32;
22440
22441
  /* harmony default export */ const head_filter = ((0,external_vue_namespaceObject.defineComponent)({
22441
22442
  name: 'HeadFilter',
22443
+ directives: {
22444
+ bkTooltips: directives_namespaceObject.bkTooltips
22445
+ },
22442
22446
  props: {
22443
22447
  column: IColumnType,
22444
22448
  height: shared_namespaceObject.PropTypes.number.def(ROW_HEIGHT)
@@ -22459,6 +22463,8 @@ var ROW_HEIGHT = 32;
22459
22463
  return (_filter$value$checked = (_filter$value = filter.value) === null || _filter$value === void 0 ? void 0 : _filter$value.checked) !== null && _filter$value$checked !== void 0 ? _filter$value$checked : [];
22460
22464
  });
22461
22465
  var searchValue = (0,external_vue_namespaceObject.ref)('');
22466
+ var filterPopoverRef = (0,external_vue_namespaceObject.ref)();
22467
+ var allTextRef = (0,external_vue_namespaceObject.ref)([]);
22462
22468
  var state = (0,external_vue_namespaceObject.reactive)({
22463
22469
  isOpen: false,
22464
22470
  checked: []
@@ -22466,11 +22472,11 @@ var ROW_HEIGHT = 32;
22466
22472
  (_state$checked = state.checked).push.apply(_state$checked, _toConsumableArray(checked.value));
22467
22473
  (0,external_vue_namespaceObject.watch)(function () {
22468
22474
  return checked;
22469
- }, function () {
22475
+ }, function (payload) {
22470
22476
  var _state$checked2;
22471
22477
  state.checked.length = 0;
22472
22478
  state.checked = [];
22473
- (_state$checked2 = state.checked).push.apply(_state$checked2, _toConsumableArray(checked.value));
22479
+ (_state$checked2 = state.checked).push.apply(_state$checked2, _toConsumableArray(payload.value));
22474
22480
  }, {
22475
22481
  deep: true
22476
22482
  });
@@ -22555,6 +22561,42 @@ var ROW_HEIGHT = 32;
22555
22561
  text: text
22556
22562
  };
22557
22563
  };
22564
+ var resolveOverflowTips = function resolveOverflowTips(payload) {
22565
+ var _filterPopoverRef$val;
22566
+ var labelRef = allTextRef.value["list-item-".concat(payload.value, "-ref")];
22567
+ var checkBoxLabelRef = (_filterPopoverRef$val = filterPopoverRef.value) === null || _filterPopoverRef$val === void 0 ? void 0 : _filterPopoverRef$val.querySelector('.bk-checkbox-label');
22568
+ if (labelRef && checkBoxLabelRef) {
22569
+ var _filterPopoverRef$val2, _filterPopoverRef$val3;
22570
+ var CHECKBOX_WIDTH = 16;
22571
+ var labelStyles = renderDomStyles(labelRef);
22572
+ var checkBoxLabel = renderDomStyles(checkBoxLabelRef);
22573
+ var filterPopoverStyles = renderDomStyles(filterPopoverRef.value);
22574
+ // 获取每个item项的margin、padding、 border
22575
+ var allTipStyles = (labelRef === null || labelRef === void 0 ? void 0 : labelRef.offsetWidth) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.borderSize) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.marginSize) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.paddingSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.borderSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.marginSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.paddingSize) + (checkBoxLabel === null || checkBoxLabel === void 0 ? void 0 : checkBoxLabel.marginSize) + (checkBoxLabel === null || checkBoxLabel === void 0 ? void 0 : checkBoxLabel.paddingSize);
22576
+ if ((labelRef === null || labelRef === void 0 ? void 0 : labelRef.offsetWidth) > ((_filterPopoverRef$val2 = filterPopoverRef.value) === null || _filterPopoverRef$val2 === void 0 ? void 0 : _filterPopoverRef$val2.offsetWidth) || CHECKBOX_WIDTH + allTipStyles > ((_filterPopoverRef$val3 = filterPopoverRef.value) === null || _filterPopoverRef$val3 === void 0 ? void 0 : _filterPopoverRef$val3.offsetWidth)) {
22577
+ return false;
22578
+ }
22579
+ }
22580
+ return true;
22581
+ };
22582
+ var renderDomStyles = function renderDomStyles(el) {
22583
+ if (!el) {
22584
+ return {
22585
+ paddingSize: 0,
22586
+ borderSize: 0,
22587
+ marginSize: 0
22588
+ };
22589
+ }
22590
+ var styles = getComputedStyle(el);
22591
+ var paddingSize = Number.parseFloat(styles.getPropertyValue('padding-left')) + Number.parseFloat(styles.getPropertyValue('padding-right'));
22592
+ var borderSize = Number.parseFloat(styles.getPropertyValue('border-left-width')) + Number.parseFloat(styles.getPropertyValue('border-right-width'));
22593
+ var marginSize = Number.parseFloat(styles.getPropertyValue('margin-left')) + Number.parseFloat(styles.getPropertyValue('margin-right'));
22594
+ return {
22595
+ paddingSize: paddingSize,
22596
+ borderSize: borderSize,
22597
+ marginSize: marginSize
22598
+ };
22599
+ };
22558
22600
  var _filter$value4 = filter.value,
22559
22601
  btnSave = _filter$value4.btnSave,
22560
22602
  btnReset = _filter$value4.btnReset;
@@ -22606,13 +22648,15 @@ var ROW_HEIGHT = 32;
22606
22648
  }
22607
22649
  state.checked.length = 0;
22608
22650
  (_state$checked3 = state.checked).push.apply(_state$checked3, _toConsumableArray(Array.from(setValue)));
22651
+ filter.value.checked = _toConsumableArray(state.checked);
22609
22652
  handleFilterChange();
22610
22653
  };
22611
22654
  var renderFilterList = function renderFilterList(scope) {
22612
22655
  if (scope.data.length) {
22613
22656
  return scope.data.map(function (item) {
22614
- return (0,external_vue_namespaceObject.createVNode)("div", {
22657
+ return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
22615
22658
  "key": item.value,
22659
+ "ref": filterPopoverRef,
22616
22660
  "class": "list-item"
22617
22661
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
22618
22662
  "checked": state.checked.includes(item.value),
@@ -22624,9 +22668,17 @@ var ROW_HEIGHT = 32;
22624
22668
  }
22625
22669
  }, {
22626
22670
  "default": function _default() {
22627
- return ["".concat(item.text)];
22671
+ return [(0,external_vue_namespaceObject.createVNode)("span", {
22672
+ "ref": function ref(el) {
22673
+ return allTextRef.value["list-item-".concat(item.value, "-ref")] = el;
22674
+ }
22675
+ }, ["".concat(item.text)])];
22628
22676
  }
22629
- })]);
22677
+ })]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
22678
+ content: item.tipKey || item.text,
22679
+ placement: 'right',
22680
+ disabled: resolveOverflowTips(item)
22681
+ }]]);
22630
22682
  });
22631
22683
  }
22632
22684
  return (0,external_vue_namespaceObject.createVNode)("div", {
@@ -23465,6 +23517,12 @@ function use_render_isSlot(s) {
23465
23517
  * @param rows
23466
23518
  */
23467
23519
  var handleRowClick = function handleRowClick(e, row, index, rows) {
23520
+ var _e$target;
23521
+ var tagName = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.tagName;
23522
+ // span标签中嵌套了input标签产生冒泡,会先后都触发一次click事件, 所以会调用两遍
23523
+ if (tagName === 'INPUT') {
23524
+ return;
23525
+ }
23468
23526
  ctx.emit(EMIT_EVENTS.ROW_CLICK, e, row, index, rows);
23469
23527
  };
23470
23528
  /**
@@ -24724,6 +24782,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24724
24782
  toggleAllSelection: rows.toggleAllSelection,
24725
24783
  toggleRowSelection: rows.toggleRowSelection,
24726
24784
  getSelection: rows.getRowSelection,
24785
+ setRowSelection: rows.setRowSelection,
24727
24786
  clearSort: columns.clearColumnSort,
24728
24787
  scrollTo: scrollTo,
24729
24788
  getRoot: function getRoot() {
@@ -71,6 +71,7 @@ export type IFilterShape = {
71
71
  label: string;
72
72
  text?: string;
73
73
  value: string;
74
+ tipKey?: string;
74
75
  }[];
75
76
  filterFn?: (...args: any[]) => boolean;
76
77
  match?: FullEnum;
@@ -123,12 +124,12 @@ export type Field = {
123
124
  export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
124
125
  export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
125
126
  export type HeadRenderArgs = {
126
- cell?: Record<string, object>;
127
- data?: Record<string, object>[];
128
- row?: Record<string, object>;
127
+ cell?: any;
128
+ data?: any;
129
+ row?: Record<string, any>;
129
130
  column?: Column;
130
131
  index?: number;
131
- rows?: Record<string, object>[];
132
+ rows?: Record<string, any>[];
132
133
  };
133
134
  export type RenderFunctionString = (args: HeadRenderArgs) => JSX.Element | boolean | number | string;
134
135
  export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
@@ -1687,6 +1687,12 @@
1687
1687
  border-bottom: none;
1688
1688
  border-left: none;
1689
1689
  }
1690
+ .bk-table.bordered-none .bk-table-body table tbody tr td {
1691
+ border-top: none;
1692
+ border-right: 1px solid var(--table-bg-color);
1693
+ border-bottom: none;
1694
+ border-left: none;
1695
+ }
1690
1696
  .bk-table .bk-table-fixed {
1691
1697
  position: absolute;
1692
1698
  top: 0;
@@ -539,6 +539,20 @@
539
539
  border-bottom: none;
540
540
  border-left: none;
541
541
  }
542
+ .@{bk-prefix}-table-body {
543
+ table {
544
+ tbody {
545
+ tr {
546
+ td {
547
+ border-top: none;
548
+ border-right: 1px solid @table-bg-color;
549
+ border-bottom: none;
550
+ border-left: none;
551
+ }
552
+ }
553
+ }
554
+ }
555
+ }
542
556
  }
543
557
 
544
558
  .@{bk-prefix}-table-fixed {
@@ -2077,6 +2077,12 @@
2077
2077
  border-bottom: none;
2078
2078
  border-left: none;
2079
2079
  }
2080
+ .bk-table.bordered-none .bk-table-body table tbody tr td {
2081
+ border-top: none;
2082
+ border-right: 1px solid var(--table-bg-color);
2083
+ border-bottom: none;
2084
+ border-left: none;
2085
+ }
2080
2086
  .bk-table .bk-table-fixed {
2081
2087
  position: absolute;
2082
2088
  top: 0;
@@ -140,6 +140,7 @@ export declare const resolveColumnFilterProp: (col: Column) => {
140
140
  label: string;
141
141
  text?: string;
142
142
  value: string;
143
+ tipKey?: string;
143
144
  }[];
144
145
  filterFn?: (...args: any[]) => boolean;
145
146
  match?: import("./props").FullEnum;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import type { TagProps } from './tag-props';
3
- export declare const INPUT_MIN_WIDTH = 12;
3
+ export declare const INPUT_MIN_WIDTH = 10;
4
4
  export declare function useDebouncedRef<T>(value: any, delay?: number): Ref<T>;
5
5
  export declare function usePage(pageSize: Ref<number>): {
6
6
  pageState: {
@@ -297,6 +297,7 @@ declare const TagInput: {
297
297
  bkTagSelectorRef: import("vue").Ref<any>;
298
298
  tagListRef: import("vue").Ref<any>;
299
299
  tagInputItemRef: import("vue").Ref<any>;
300
+ inputValueRef: import("vue").Ref<HTMLElement>;
300
301
  selectorListRef: import("vue").Ref<any>;
301
302
  triggerClass: import("vue").ComputedRef<{
302
303
  [x: string]: boolean;
@@ -964,6 +965,7 @@ declare const TagInput: {
964
965
  bkTagSelectorRef: import("vue").Ref<any>;
965
966
  tagListRef: import("vue").Ref<any>;
966
967
  tagInputItemRef: import("vue").Ref<any>;
968
+ inputValueRef: import("vue").Ref<HTMLElement>;
967
969
  selectorListRef: import("vue").Ref<any>;
968
970
  triggerClass: import("vue").ComputedRef<{
969
971
  [x: string]: boolean;
@@ -1341,6 +1343,7 @@ declare const TagInput: {
1341
1343
  bkTagSelectorRef: import("vue").Ref<any>;
1342
1344
  tagListRef: import("vue").Ref<any>;
1343
1345
  tagInputItemRef: import("vue").Ref<any>;
1346
+ inputValueRef: import("vue").Ref<HTMLElement>;
1344
1347
  selectorListRef: import("vue").Ref<any>;
1345
1348
  triggerClass: import("vue").ComputedRef<{
1346
1349
  [x: string]: boolean;
@@ -17509,7 +17509,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
17509
17509
  * IN THE SOFTWARE.
17510
17510
  */
17511
17511
 
17512
- var INPUT_MIN_WIDTH = 12;
17512
+ var INPUT_MIN_WIDTH = 10;
17513
17513
  function useDebouncedRef(value) {
17514
17514
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
17515
17515
  var timeout;
@@ -18004,6 +18004,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18004
18004
  var tagListRef = (0,external_vue_namespaceObject.ref)(null);
18005
18005
  var tagInputItemRef = (0,external_vue_namespaceObject.ref)(null);
18006
18006
  var selectorListRef = (0,external_vue_namespaceObject.ref)(null);
18007
+ var inputValueRef = (0,external_vue_namespaceObject.ref)();
18007
18008
  var timer = (0,external_vue_namespaceObject.ref)(null);
18008
18009
  // 是否展示tag close
18009
18010
  var showTagClose = (0,external_vue_namespaceObject.computed)(function () {
@@ -18323,7 +18324,9 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18323
18324
  var charLen = getCharLength(value);
18324
18325
  if (charLen) {
18325
18326
  filterData(value);
18326
- tagInputRef.value.style.width = "".concat(charLen * INPUT_MIN_WIDTH, "px");
18327
+ (0,external_vue_namespaceObject.nextTick)(function () {
18328
+ tagInputRef.value.style.width = "".concat(inputValueRef.value.getBoundingClientRect().width, "px");
18329
+ });
18327
18330
  } else {
18328
18331
  if (trigger === 'focus') {
18329
18332
  filterData();
@@ -18771,6 +18774,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18771
18774
  bkTagSelectorRef: bkTagSelectorRef,
18772
18775
  tagListRef: tagListRef,
18773
18776
  tagInputItemRef: tagInputItemRef,
18777
+ inputValueRef: inputValueRef,
18774
18778
  selectorListRef: selectorListRef,
18775
18779
  triggerClass: triggerClass,
18776
18780
  overflowTagIndex: overflowTagIndex,
@@ -18847,6 +18851,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18847
18851
  "onUpdate:modelValue": function onUpdateModelValue($event) {
18848
18852
  return _this.curInputValue = $event;
18849
18853
  },
18854
+ "spellcheck": "false",
18850
18855
  "type": "text",
18851
18856
  "onBlur": _this.handleBlur,
18852
18857
  "onFocus": _this.handleFocus,
@@ -18859,7 +18864,11 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18859
18864
  "class": "tag"
18860
18865
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
18861
18866
  "class": "text"
18862
- }, [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTagList.length - _this.overflowTagIndex])])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.collapseTooltip.join(', ')]])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("p", {
18867
+ }, [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTagList.length - _this.overflowTagIndex])])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.collapseTooltip.join(', ')]]), (0,external_vue_namespaceObject.createVNode)("div", {
18868
+ "key": "inputValuePlaceholder",
18869
+ "ref": "inputValueRef",
18870
+ "style": "position: absolute; white-space: nowrap; border-box; visibility: hidden; z-index: 1"
18871
+ }, [_this.curInputValue])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("p", {
18863
18872
  "class": "placeholder"
18864
18873
  }, [_this.placeholderText]), [[external_vue_namespaceObject.vShow, _this.isShowPlaceholder]]), (_this$$slots$suffix = (_this$$slots = _this.$slots) === null || _this$$slots === void 0 || (_this$$slots$suffix2 = _this$$slots.suffix) === null || _this$$slots$suffix2 === void 0 ? void 0 : _this$$slots$suffix2.call(_this$$slots)) !== null && _this$$slots$suffix !== void 0 ? _this$$slots$suffix : _this.isShowClear && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
18865
18874
  "class": "clear-icon",