bkui-vue 2.0.1-beta.71 → 2.0.1-beta.72.fix.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 (56) hide show
  1. package/dist/index.cjs.js +42 -42
  2. package/dist/index.esm.js +12902 -13006
  3. package/dist/index.umd.js +42 -42
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/cascader/index.js +5 -7
  7. package/lib/color-picker/color-picker.d.ts +0 -16
  8. package/lib/color-picker/index.d.ts +0 -23
  9. package/lib/color-picker/index.js +1 -8
  10. package/lib/dialog/dialog.d.ts +6 -6
  11. package/lib/dialog/index.d.ts +12 -12
  12. package/lib/dialog/index.js +1 -3
  13. package/lib/dialog/props.d.ts +3 -3
  14. package/lib/index.js +1 -1
  15. package/lib/input/index.js +521 -42
  16. package/lib/input/input.css +1 -23
  17. package/lib/input/input.less +1 -30
  18. package/lib/input/input.variable.css +1 -23
  19. package/lib/modal/index.js +21 -54
  20. package/lib/plugin-popover/index.js +1 -2
  21. package/lib/popover/index.js +1 -2
  22. package/lib/resize-layout/index.js +0 -4
  23. package/lib/search-select/index.d.ts +6 -60
  24. package/lib/search-select/index.js +89 -201
  25. package/lib/search-select/input.d.ts +2 -12
  26. package/lib/search-select/menu.d.ts +0 -12
  27. package/lib/search-select/search-select.css +1 -0
  28. package/lib/search-select/search-select.d.ts +4 -18
  29. package/lib/search-select/search-select.less +1 -1
  30. package/lib/search-select/search-select.variable.css +1 -0
  31. package/lib/search-select/selected.d.ts +0 -23
  32. package/lib/select/common.d.ts +1 -1
  33. package/lib/select/index.d.ts +0 -6
  34. package/lib/select/index.js +12 -35
  35. package/lib/select/select.d.ts +0 -2
  36. package/lib/select/selectTagInput.d.ts +0 -1
  37. package/lib/select/type.d.ts +2 -2
  38. package/lib/tab/index.d.ts +0 -22
  39. package/lib/tab/index.js +10 -32
  40. package/lib/tab/props.d.ts +0 -10
  41. package/lib/tab/tab-nav.d.ts +2 -12
  42. package/lib/tab/tab-panel.d.ts +0 -22
  43. package/lib/tab/tab.css +0 -64
  44. package/lib/tab/tab.less +4 -91
  45. package/lib/tab/tab.variable.css +0 -64
  46. package/lib/table/hooks/use-settings.d.ts +0 -2
  47. package/lib/table/index.js +10 -69
  48. package/lib/table/props.d.ts +4 -5
  49. package/lib/table/table.css +0 -7
  50. package/lib/table/table.less +0 -15
  51. package/lib/table/table.variable.css +0 -7
  52. package/lib/table/utils.d.ts +0 -1
  53. package/lib/table-column/index.js +1 -1
  54. package/lib/tag-input/index.js +1 -3
  55. package/lib/upload/index.js +9 -31
  56. package/package.json +1 -1
package/lib/tab/tab.less CHANGED
@@ -6,9 +6,6 @@
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;
12
9
  @tab-card-tab-bg: #F0F1F5;
13
10
  @tab-card-tab-divider: #c4c6cc;
14
11
  @tab-disable-color: #aaa;
@@ -45,28 +42,7 @@
45
42
 
46
43
  .@{bk-prefix}-tab--left &, .@{bk-prefix}-tab--right & {
47
44
  flex-direction: column;
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
-
45
+
70
46
  > div {
71
47
  flex-direction: column;
72
48
  }
@@ -78,30 +54,6 @@
78
54
 
79
55
  .@{bk-prefix}-tab--card-tab & {
80
56
  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
- }
105
57
  }
106
58
 
107
59
  .@{bk-prefix}-tab--card &, .@{bk-prefix}-tab--vertical-card & {
@@ -256,36 +208,7 @@
256
208
  padding-left: 12px;
257
209
  }
258
210
 
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
-
211
+
289
212
  &:hover {
290
213
  color: @tab-active;
291
214
 
@@ -295,6 +218,7 @@
295
218
  color: @danger-color;
296
219
  }
297
220
  }
221
+
298
222
  }
299
223
 
300
224
  &--active {
@@ -336,18 +260,7 @@
336
260
  border-left: 2px solid @tab-active;
337
261
  }
338
262
  */
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
- }
263
+
351
264
  }
352
265
 
353
266
  &--close {
@@ -416,21 +416,6 @@
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
- }
434
419
  .bk-tab--left .bk-tab-header > div,
435
420
  .bk-tab--right .bk-tab-header > div {
436
421
  flex-direction: column;
@@ -442,18 +427,6 @@
442
427
  .bk-tab--card-tab .bk-tab-header {
443
428
  border-radius: 4px 4px 0;
444
429
  }
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
- }
457
430
  .bk-tab--card .bk-tab-header,
458
431
  .bk-tab--vertical-card .bk-tab-header {
459
432
  border-bottom: 1px solid var(--disable-color);
@@ -578,35 +551,6 @@
578
551
  padding-right: 12px;
579
552
  padding-left: 12px;
580
553
  }
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
- }
610
554
  .bk-tab-header-item:hover {
611
555
  color: var(--primary-color);
612
556
  }
@@ -652,14 +596,6 @@
652
596
  .bk-tab--card-grid .bk-tab-header--active {
653
597
  background: #fff;
654
598
  }
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
- }
663
599
  .bk-tab-header--close {
664
600
  display: none;
665
601
  font-size: 16px;
@@ -36,7 +36,6 @@ declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: U
36
36
  label: string;
37
37
  text?: string;
38
38
  value: string;
39
- tipKey?: string;
40
39
  }[];
41
40
  filterFn?: (...args: any[]) => boolean;
42
41
  match?: import("../props").FullEnum;
@@ -90,7 +89,6 @@ declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: U
90
89
  label: string;
91
90
  text?: string;
92
91
  value: string;
93
- tipKey?: string;
94
92
  }[];
95
93
  filterFn?: (...args: any[]) => boolean;
96
94
  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, ["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 });
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 });
17331
17331
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
17332
17332
  function typeof_typeof(o) {
17333
17333
  "@babel/helpers - typeof";
@@ -17917,7 +17917,7 @@ var tableProps = {
17917
17917
  /**
17918
17918
  * 启用Scrollbar
17919
17919
  */
17920
- scrollbar: shared_namespaceObject.PropTypes.bool.def(true),
17920
+ scrollbar: shared_namespaceObject.PropTypes.bool.def(false),
17921
17921
  // scrollbehavior: toType<`${ScrollBehavior}`>('ScrollBehavior', {
17922
17922
  /**
17923
17923
  * 固定在底部的配置项
@@ -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, ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
21765
+ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance });
21766
21766
  ;// CONCATENATED MODULE: ../../packages/table/src/components/table-cell.tsx
21767
21767
 
21768
21768
 
@@ -22433,16 +22433,12 @@ const input_less_namespaceObject = input_less_x({ });
22433
22433
 
22434
22434
 
22435
22435
 
22436
-
22437
22436
  function _isSlot(s) {
22438
22437
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
22439
22438
  }
22440
22439
  var ROW_HEIGHT = 32;
22441
22440
  /* harmony default export */ const head_filter = ((0,external_vue_namespaceObject.defineComponent)({
22442
22441
  name: 'HeadFilter',
22443
- directives: {
22444
- bkTooltips: directives_namespaceObject.bkTooltips
22445
- },
22446
22442
  props: {
22447
22443
  column: IColumnType,
22448
22444
  height: shared_namespaceObject.PropTypes.number.def(ROW_HEIGHT)
@@ -22463,8 +22459,6 @@ var ROW_HEIGHT = 32;
22463
22459
  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 : [];
22464
22460
  });
22465
22461
  var searchValue = (0,external_vue_namespaceObject.ref)('');
22466
- var filterPopoverRef = (0,external_vue_namespaceObject.ref)();
22467
- var allTextRef = (0,external_vue_namespaceObject.ref)([]);
22468
22462
  var state = (0,external_vue_namespaceObject.reactive)({
22469
22463
  isOpen: false,
22470
22464
  checked: []
@@ -22472,11 +22466,11 @@ var ROW_HEIGHT = 32;
22472
22466
  (_state$checked = state.checked).push.apply(_state$checked, _toConsumableArray(checked.value));
22473
22467
  (0,external_vue_namespaceObject.watch)(function () {
22474
22468
  return checked;
22475
- }, function (payload) {
22469
+ }, function () {
22476
22470
  var _state$checked2;
22477
22471
  state.checked.length = 0;
22478
22472
  state.checked = [];
22479
- (_state$checked2 = state.checked).push.apply(_state$checked2, _toConsumableArray(payload.value));
22473
+ (_state$checked2 = state.checked).push.apply(_state$checked2, _toConsumableArray(checked.value));
22480
22474
  }, {
22481
22475
  deep: true
22482
22476
  });
@@ -22561,42 +22555,6 @@ var ROW_HEIGHT = 32;
22561
22555
  text: text
22562
22556
  };
22563
22557
  };
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
- };
22600
22558
  var _filter$value4 = filter.value,
22601
22559
  btnSave = _filter$value4.btnSave,
22602
22560
  btnReset = _filter$value4.btnReset;
@@ -22648,15 +22606,13 @@ var ROW_HEIGHT = 32;
22648
22606
  }
22649
22607
  state.checked.length = 0;
22650
22608
  (_state$checked3 = state.checked).push.apply(_state$checked3, _toConsumableArray(Array.from(setValue)));
22651
- filter.value.checked = _toConsumableArray(state.checked);
22652
22609
  handleFilterChange();
22653
22610
  };
22654
22611
  var renderFilterList = function renderFilterList(scope) {
22655
22612
  if (scope.data.length) {
22656
22613
  return scope.data.map(function (item) {
22657
- return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
22614
+ return (0,external_vue_namespaceObject.createVNode)("div", {
22658
22615
  "key": item.value,
22659
- "ref": filterPopoverRef,
22660
22616
  "class": "list-item"
22661
22617
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
22662
22618
  "checked": state.checked.includes(item.value),
@@ -22668,17 +22624,9 @@ var ROW_HEIGHT = 32;
22668
22624
  }
22669
22625
  }, {
22670
22626
  "default": function _default() {
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)])];
22627
+ return ["".concat(item.text)];
22676
22628
  }
22677
- })]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
22678
- content: item.tipKey || item.text,
22679
- placement: 'right',
22680
- disabled: resolveOverflowTips(item)
22681
- }]]);
22629
+ })]);
22682
22630
  });
22683
22631
  }
22684
22632
  return (0,external_vue_namespaceObject.createVNode)("div", {
@@ -23517,12 +23465,6 @@ function use_render_isSlot(s) {
23517
23465
  * @param rows
23518
23466
  */
23519
23467
  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
- }
23526
23468
  ctx.emit(EMIT_EVENTS.ROW_CLICK, e, row, index, rows);
23527
23469
  };
23528
23470
  /**
@@ -24665,7 +24607,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24665
24607
  use_observer_resize(refRoot, function () {
24666
24608
  if (!observerResizing.value) {
24667
24609
  observerResizing.value = true;
24668
- if ((props.height === '100%' || props.virtualEnabled) && (0,lodash.isElement)(refRoot.value)) {
24610
+ if (props.virtualEnabled && (0,lodash.isElement)(refRoot.value)) {
24669
24611
  if (isResizeBodyHeight.value) {
24670
24612
  setTimeout(function () {
24671
24613
  isResizeBodyHeight.value = false;
@@ -24688,7 +24630,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24688
24630
  });
24689
24631
  });
24690
24632
  var setRowsBodyHeight = function setRowsBodyHeight() {
24691
- if (props.virtualEnabled && (props.height === '100%' || props.height === 'auto')) {
24633
+ if (props.virtualEnabled) {
24692
24634
  var rowsHeight = rows.getCurrentPageRowsHeight();
24693
24635
  var bodyHeight = rowsHeight;
24694
24636
  if (/^\d+\.?\d*(px)?$/.test("".concat(props.maxHeight))) {
@@ -24782,7 +24724,6 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24782
24724
  toggleAllSelection: rows.toggleAllSelection,
24783
24725
  toggleRowSelection: rows.toggleRowSelection,
24784
24726
  getSelection: rows.getRowSelection,
24785
- setRowSelection: rows.setRowSelection,
24786
24727
  clearSort: columns.clearColumnSort,
24787
24728
  scrollTo: scrollTo,
24788
24729
  getRoot: function getRoot() {
@@ -71,7 +71,6 @@ export type IFilterShape = {
71
71
  label: string;
72
72
  text?: string;
73
73
  value: string;
74
- tipKey?: string;
75
74
  }[];
76
75
  filterFn?: (...args: any[]) => boolean;
77
76
  match?: FullEnum;
@@ -124,12 +123,12 @@ export type Field = {
124
123
  export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
125
124
  export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
126
125
  export type HeadRenderArgs = {
127
- cell?: unknown;
128
- data?: unknown;
129
- row?: Record<string, unknown>;
126
+ cell?: Record<string, object>;
127
+ data?: Record<string, object>[];
128
+ row?: Record<string, object>;
130
129
  column?: Column;
131
130
  index?: number;
132
- rows?: Record<string, unknown>[];
131
+ rows?: Record<string, object>[];
133
132
  };
134
133
  export type RenderFunctionString = (args: HeadRenderArgs) => JSX.Element | boolean | number | string;
135
134
  export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
@@ -1252,7 +1252,6 @@
1252
1252
  .bk-table .bk-table-body {
1253
1253
  position: relative;
1254
1254
  overflow: auto;
1255
- flex: 1;
1256
1255
  }
1257
1256
  .bk-table .bk-table-body::-webkit-scrollbar {
1258
1257
  width: 8px;
@@ -1688,12 +1687,6 @@
1688
1687
  border-bottom: none;
1689
1688
  border-left: none;
1690
1689
  }
1691
- .bk-table.bordered-none .bk-table-body table tbody tr td {
1692
- border-top: none;
1693
- border-right: 1px solid var(--table-bg-color);
1694
- border-bottom: none;
1695
- border-left: none;
1696
- }
1697
1690
  .bk-table .bk-table-fixed {
1698
1691
  position: absolute;
1699
1692
  top: 0;
@@ -23,7 +23,6 @@
23
23
  .@{bk-prefix}-table-body {
24
24
  position: relative;
25
25
  overflow: auto;
26
- flex: 1;
27
26
 
28
27
  &::-webkit-scrollbar {
29
28
  width: 8px;
@@ -540,20 +539,6 @@
540
539
  border-bottom: none;
541
540
  border-left: none;
542
541
  }
543
- .@{bk-prefix}-table-body {
544
- table {
545
- tbody {
546
- tr {
547
- td {
548
- border-top: none;
549
- border-right: 1px solid @table-bg-color;
550
- border-bottom: none;
551
- border-left: none;
552
- }
553
- }
554
- }
555
- }
556
- }
557
542
  }
558
543
 
559
544
  .@{bk-prefix}-table-fixed {
@@ -1642,7 +1642,6 @@
1642
1642
  .bk-table .bk-table-body {
1643
1643
  position: relative;
1644
1644
  overflow: auto;
1645
- flex: 1;
1646
1645
  }
1647
1646
  .bk-table .bk-table-body::-webkit-scrollbar {
1648
1647
  width: 8px;
@@ -2078,12 +2077,6 @@
2078
2077
  border-bottom: none;
2079
2078
  border-left: none;
2080
2079
  }
2081
- .bk-table.bordered-none .bk-table-body table tbody tr td {
2082
- border-top: none;
2083
- border-right: 1px solid var(--table-bg-color);
2084
- border-bottom: none;
2085
- border-left: none;
2086
- }
2087
2080
  .bk-table .bk-table-fixed {
2088
2081
  position: absolute;
2089
2082
  top: 0;
@@ -140,7 +140,6 @@ export declare const resolveColumnFilterProp: (col: Column) => {
140
140
  label: string;
141
141
  text?: string;
142
142
  value: string;
143
- tipKey?: string;
144
143
  }[];
145
144
  filterFn?: (...args: any[]) => boolean;
146
145
  match?: import("./props").FullEnum;
@@ -17892,7 +17892,7 @@ var tableProps = {
17892
17892
  /**
17893
17893
  * 启用Scrollbar
17894
17894
  */
17895
- scrollbar: shared_namespaceObject.PropTypes.bool.def(true),
17895
+ scrollbar: shared_namespaceObject.PropTypes.bool.def(false),
17896
17896
  // scrollbehavior: toType<`${ScrollBehavior}`>('ScrollBehavior', {
17897
17897
  /**
17898
17898
  * 固定在底部的配置项
@@ -18323,12 +18323,10 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18323
18323
  var charLen = getCharLength(value);
18324
18324
  if (charLen) {
18325
18325
  filterData(value);
18326
- // 如果按最小宽度计算,空白区域会比较大,这里先按一半宽度处理
18327
- tagInputRef.value.style.width = "".concat(charLen * (INPUT_MIN_WIDTH / 2), "px");
18326
+ tagInputRef.value.style.width = "".concat(charLen * INPUT_MIN_WIDTH, "px");
18328
18327
  } else {
18329
18328
  if (trigger === 'focus') {
18330
18329
  filterData();
18331
- tagInputRef.value.style.width = "".concat(INPUT_MIN_WIDTH, "px");
18332
18330
  }
18333
18331
  }
18334
18332
  } else {
@@ -2053,11 +2053,10 @@ var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
2053
2053
  */
2054
2054
 
2055
2055
 
2056
- var errMsg = 'An error occurred during upload';
2057
2056
  function getRes(xhr) {
2058
2057
  var res = xhr.responseText || xhr.response;
2059
2058
  if (!res) {
2060
- return res || {};
2059
+ return res;
2061
2060
  }
2062
2061
  try {
2063
2062
  return JSON.parse(res);
@@ -2108,23 +2107,11 @@ var ajaxUpload = function ajaxUpload(option) {
2108
2107
  formData.append(option.filename, option.file, option.file.name);
2109
2108
  }
2110
2109
  xhr.addEventListener('error', function () {
2111
- var msg = new Error(errMsg);
2112
- var responseText = getRes(xhr);
2113
- if (responseText) {
2114
- msg = new Error(responseText.message || errMsg);
2115
- }
2116
- console.log(responseText, msg);
2117
- option.onError(msg);
2118
- // option.onError(new Error('An error occurred during upload'));
2110
+ option.onError(new Error('An error occurred during upload'));
2119
2111
  });
2120
2112
  xhr.addEventListener('load', function () {
2121
2113
  if (xhr.status < 200 || xhr.status >= 300) {
2122
- var responseText = getRes(xhr);
2123
- var msg = new Error(errMsg);
2124
- if (responseText) {
2125
- msg = new Error(responseText.message || errMsg);
2126
- }
2127
- return option.onError(msg);
2114
+ return option.onError(new Error('An error occurred during upload'));
2128
2115
  }
2129
2116
  option.onSuccess(getRes(xhr));
2130
2117
  });
@@ -2202,15 +2189,10 @@ var ajaxSliceUpload = /*#__PURE__*/function () {
2202
2189
  req.open(option.method, option.mergeUrl, true);
2203
2190
  req.onreadystatechange = function () {
2204
2191
  if (req.readyState === 4) {
2205
- var responseText = getRes(req);
2206
2192
  if (req.status < 200 || req.status >= 300) {
2207
- var msg = new Error(errMsg);
2208
- if (responseText) {
2209
- msg = new Error(responseText.message || errMsg);
2210
- }
2211
- return option.onError(msg);
2193
+ return option.onError(new Error('An error occurred during upload'));
2212
2194
  }
2213
- option.onSuccess(responseText);
2195
+ option.onSuccess(getRes(req));
2214
2196
  }
2215
2197
  };
2216
2198
  req.onloadend = function () {
@@ -2269,14 +2251,10 @@ var sliceSend = function sliceSend(option, file, blockCount, hash, progressList,
2269
2251
  var xhr = new XMLHttpRequest();
2270
2252
  xhr.onreadystatechange = function () {
2271
2253
  if (xhr.readyState === 4) {
2272
- var responseText = getRes(xhr);
2254
+ var res = getRes(xhr);
2273
2255
  if (xhr.status < 200 || xhr.status >= 300) {
2274
- reject(responseText);
2275
- var msg = new Error(errMsg);
2276
- if (responseText) {
2277
- msg = new Error(responseText.message || errMsg);
2278
- }
2279
- option.onError(msg);
2256
+ reject(res);
2257
+ option.onError(new Error('An error occurred during upload'));
2280
2258
  } else {
2281
2259
  resolve('reponseText');
2282
2260
  }
@@ -2354,7 +2332,7 @@ var hashFile = function hashFile(file, chunkSize) {
2354
2332
  }
2355
2333
  };
2356
2334
  fileReader.onerror = function () {
2357
- reject(new Error('File slice failed'));
2335
+ reject(new Error('File slcie failed'));
2358
2336
  };
2359
2337
  loadNext();
2360
2338
  })["catch"](function (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.71",
3
+ "version": "2.0.1-beta.72.fix.1",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",