bkui-vue 2.0.1-beta.84 → 2.0.1-beta.86

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.
@@ -4722,6 +4722,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4722
4722
  };
4723
4723
  var handleBlur = function handleBlur(e) {
4724
4724
  var _pickerPanelRef$value3, _formItem$validate2;
4725
+ emit('blur');
4725
4726
  if (state.internalFocus) {
4726
4727
  state.internalFocus = false;
4727
4728
  return;
@@ -4736,7 +4737,6 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4736
4737
  reset();
4737
4738
  pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value3 = pickerPanelRef.value) === null || _pickerPanelRef$value3 === void 0 || _pickerPanelRef$value3.onToggleVisibility(false);
4738
4739
  formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
4739
- emit('blur');
4740
4740
  };
4741
4741
  var handleKeydown = function handleKeydown(e) {
4742
4742
  var keyCode = e.keyCode;
@@ -5439,6 +5439,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5439
5439
  };
5440
5440
  var handleBlur = function handleBlur(e) {
5441
5441
  var _pickerPanelRef$value5, _formItem$validate2;
5442
+ emit('blur');
5442
5443
  if (state.internalFocus) {
5443
5444
  state.internalFocus = false;
5444
5445
  return;
@@ -5453,7 +5454,6 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5453
5454
  reset();
5454
5455
  pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value5 = pickerPanelRef.value) === null || _pickerPanelRef$value5 === void 0 || _pickerPanelRef$value5.onToggleVisibility(false);
5455
5456
  formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
5456
- emit('blur');
5457
5457
  };
5458
5458
  var handleKeydown = function handleKeydown(e) {
5459
5459
  var keyCode = e.keyCode;
package/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.84";
7
+ export const version = "2.0.1-beta.86";
8
8
  window.__bkui_vue_version__ = version;
@@ -137,6 +137,7 @@ declare const BkMenu: {
137
137
  }, import("vue").SlotsType<{
138
138
  default?: () => HTMLElement;
139
139
  icon?: () => HTMLElement;
140
+ title?: () => HTMLElement;
140
141
  }>>;
141
142
  Group: import("vue").DefineComponent<{
142
143
  name: {
package/lib/menu/index.js CHANGED
@@ -649,7 +649,7 @@ var subMenuProps = {
649
649
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
650
650
  resolveClassName = _usePrefix.resolveClassName;
651
651
  return function () {
652
- var _slots$icon, _slots$default;
652
+ var _slots$icon, _slots$title, _slots$default;
653
653
  return (0,external_vue_namespaceObject.createVNode)("li", {
654
654
  "class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('menu-submenu')), true), 'is-opened', isShow.value)
655
655
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
@@ -664,7 +664,7 @@ var subMenuProps = {
664
664
  "class": "menu-icon"
665
665
  }, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
666
666
  "class": "submenu-header-content"
667
- }, [props.title]), (0,external_vue_namespaceObject.createVNode)(_namespaceObject.AngleDown, {
667
+ }, [((_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots)) || props.title]), (0,external_vue_namespaceObject.createVNode)(_namespaceObject.AngleDown, {
668
668
  "class": {
669
669
  'submenu-header-collapse': true,
670
670
  'is-collapse': openedKeys.value.includes(key)
@@ -22,5 +22,6 @@ declare const _default: import("vue").DefineComponent<{
22
22
  }, SlotsType<{
23
23
  default?: () => HTMLElement;
24
24
  icon?: () => HTMLElement;
25
+ title?: () => HTMLElement;
25
26
  }>>;
26
27
  export default _default;
@@ -47,6 +47,11 @@ declare const BkSelect: {
47
47
  } & {
48
48
  default: boolean;
49
49
  };
50
+ allOptionText: import("vue-types").VueTypeValidableDef<string> & {
51
+ default: string;
52
+ } & {
53
+ default: string;
54
+ };
50
55
  allOptionId: import("vue-types").VueTypeDef<string | number>;
51
56
  showSelectAll: import("vue-types").VueTypeValidableDef<boolean> & {
52
57
  default: boolean;
@@ -692,6 +697,7 @@ declare const BkSelect: {
692
697
  }>>>>;
693
698
  isAllSelected: import("vue").ComputedRef<boolean>;
694
699
  isAll: import("vue").ComputedRef<boolean>;
700
+ displayAllText: import("vue").ComputedRef<string>;
695
701
  focusInput: () => void;
696
702
  setHover: () => void;
697
703
  cancelHover: () => void;
@@ -769,6 +775,11 @@ declare const BkSelect: {
769
775
  } & {
770
776
  default: boolean;
771
777
  };
778
+ allOptionText: import("vue-types").VueTypeValidableDef<string> & {
779
+ default: string;
780
+ } & {
781
+ default: string;
782
+ };
772
783
  allOptionId: import("vue-types").VueTypeDef<string | number>;
773
784
  showSelectAll: import("vue-types").VueTypeValidableDef<boolean> & {
774
785
  default: boolean;
@@ -1086,6 +1097,7 @@ declare const BkSelect: {
1086
1097
  idKey: string;
1087
1098
  remoteMethod: (...args: any[]) => any;
1088
1099
  showAll: boolean;
1100
+ allOptionText: string;
1089
1101
  showSelectAll: boolean;
1090
1102
  multipleMode: string;
1091
1103
  autoHeight: boolean;
@@ -1156,6 +1168,11 @@ declare const BkSelect: {
1156
1168
  } & {
1157
1169
  default: boolean;
1158
1170
  };
1171
+ allOptionText: import("vue-types").VueTypeValidableDef<string> & {
1172
+ default: string;
1173
+ } & {
1174
+ default: string;
1175
+ };
1159
1176
  allOptionId: import("vue-types").VueTypeDef<string | number>;
1160
1177
  showSelectAll: import("vue-types").VueTypeValidableDef<boolean> & {
1161
1178
  default: boolean;
@@ -1801,6 +1818,7 @@ declare const BkSelect: {
1801
1818
  }>>>>;
1802
1819
  isAllSelected: import("vue").ComputedRef<boolean>;
1803
1820
  isAll: import("vue").ComputedRef<boolean>;
1821
+ displayAllText: import("vue").ComputedRef<string>;
1804
1822
  focusInput: () => void;
1805
1823
  setHover: () => void;
1806
1824
  cancelHover: () => void;
@@ -1860,6 +1878,7 @@ declare const BkSelect: {
1860
1878
  idKey: string;
1861
1879
  remoteMethod: (...args: any[]) => any;
1862
1880
  showAll: boolean;
1881
+ allOptionText: string;
1863
1882
  showSelectAll: boolean;
1864
1883
  multipleMode: string;
1865
1884
  autoHeight: boolean;
@@ -1927,6 +1946,11 @@ declare const BkSelect: {
1927
1946
  } & {
1928
1947
  default: boolean;
1929
1948
  };
1949
+ allOptionText: import("vue-types").VueTypeValidableDef<string> & {
1950
+ default: string;
1951
+ } & {
1952
+ default: string;
1953
+ };
1930
1954
  allOptionId: import("vue-types").VueTypeDef<string | number>;
1931
1955
  showSelectAll: import("vue-types").VueTypeValidableDef<boolean> & {
1932
1956
  default: boolean;
@@ -2572,6 +2596,7 @@ declare const BkSelect: {
2572
2596
  }>>>>;
2573
2597
  isAllSelected: import("vue").ComputedRef<boolean>;
2574
2598
  isAll: import("vue").ComputedRef<boolean>;
2599
+ displayAllText: import("vue").ComputedRef<string>;
2575
2600
  focusInput: () => void;
2576
2601
  setHover: () => void;
2577
2602
  cancelHover: () => void;
@@ -2631,6 +2656,7 @@ declare const BkSelect: {
2631
2656
  idKey: string;
2632
2657
  remoteMethod: (...args: any[]) => any;
2633
2658
  showAll: boolean;
2659
+ allOptionText: string;
2634
2660
  showSelectAll: boolean;
2635
2661
  multipleMode: string;
2636
2662
  autoHeight: boolean;
@@ -2633,6 +2633,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2633
2633
  scrollHeight: shared_namespaceObject.PropTypes.number.def(204),
2634
2634
  minHeight: shared_namespaceObject.PropTypes.number,
2635
2635
  showAll: shared_namespaceObject.PropTypes.bool.def(false),
2636
+ allOptionText: shared_namespaceObject.PropTypes.string.def(''),
2636
2637
  allOptionId: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
2637
2638
  showSelectAll: shared_namespaceObject.PropTypes.bool.def(false),
2638
2639
  popoverMinWidth: shared_namespaceObject.PropTypes.number.def(0),
@@ -2718,6 +2719,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2718
2719
  trigger = _toRefs.trigger,
2719
2720
  disableScrollToSelectedOption = _toRefs.disableScrollToSelectedOption;
2720
2721
  var virtualRenderRef = (0,external_vue_namespaceObject.ref)(null);
2722
+ var displayAllText = (0,external_vue_namespaceObject.computed)(function () {
2723
+ return props.allOptionText;
2724
+ });
2721
2725
  var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
2722
2726
  if (props.noDataText === undefined) {
2723
2727
  return t.value.noData;
@@ -3444,6 +3448,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3444
3448
  popoverConfig: popoverConfig,
3445
3449
  isAllSelected: isAllSelected,
3446
3450
  isAll: isAll,
3451
+ displayAllText: displayAllText,
3447
3452
  focusInput: focusInput,
3448
3453
  setHover: setHover,
3449
3454
  cancelHover: cancelHover,
@@ -3529,6 +3534,17 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3529
3534
  "modelValue": _this.isAllSelected
3530
3535
  }, null), _this.t.selectAll]);
3531
3536
  };
3537
+ // 全部icon支持自定义
3538
+ var renderAllIcon = function renderAllIcon() {
3539
+ var _this$$slots5, _this$$slots5$allOpti;
3540
+ return ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 || (_this$$slots5$allOpti = _this$$slots5.allOptionIcon) === null || _this$$slots5$allOpti === void 0 ? void 0 : _this$$slots5$allOpti.call(_this$$slots5)) || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.TextAll, {
3541
+ "class": "select-all-icon"
3542
+ }, null);
3543
+ };
3544
+ // 全部选项文案支持自定义
3545
+ var renderAllText = function renderAllText() {
3546
+ return (0,external_vue_namespaceObject.createVNode)("span", null, [_this.displayAllText || _this.t.all]);
3547
+ };
3532
3548
  // 全部
3533
3549
  var renderAll = function renderAll() {
3534
3550
  var _this$selected$;
@@ -3538,15 +3554,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3538
3554
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
3539
3555
  "class": ['wrapper', _this.selected.length === 1 && ((_this$selected$ = _this.selected[0]) === null || _this$selected$ === void 0 ? void 0 : _this$selected$.value) === _this.allOptionId ? 'active' : ''],
3540
3556
  "onClick": _this.toggleAll
3541
- }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.TextAll, {
3542
- "class": "select-all-icon"
3543
- }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
3557
+ }, [renderAllIcon(), renderAllText()])]);
3544
3558
  };
3545
3559
  // 默认trigger输入框渲染
3546
3560
  var renderTriggerInput = function renderTriggerInput() {
3547
- var _this$$slots9;
3561
+ var _this$$slots10;
3548
3562
  if (_this.multipleMode === 'tag') {
3549
- var _this$$slots5, _this$$slots7;
3563
+ var _this$$slots6, _this$$slots8;
3550
3564
  return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
3551
3565
  "ref": "selectTagInputRef",
3552
3566
  "modelValue": _this.customOptionName,
@@ -3564,15 +3578,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3564
3578
  "onRemove": _this.handleDeleteTag
3565
3579
  }, {
3566
3580
  prefix: renderPrefix(),
3567
- "default": ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.tag) && function () {
3568
- var _this$$slots6;
3569
- return (_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 ? void 0 : _this$$slots6.tag({
3581
+ "default": ((_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 ? void 0 : _this$$slots6.tag) && function () {
3582
+ var _this$$slots7;
3583
+ return (_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.tag({
3570
3584
  selected: _this.selected
3571
3585
  });
3572
3586
  },
3573
- tagRender: ((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.tagRender) && function (item) {
3574
- var _this$$slots8;
3575
- return (_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.tagRender(item);
3587
+ tagRender: ((_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.tagRender) && function (item) {
3588
+ var _this$$slots9;
3589
+ return (_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 ? void 0 : _this$$slots9.tagRender(item);
3576
3590
  },
3577
3591
  suffix: function suffix() {
3578
3592
  return suffixIcon();
@@ -3595,10 +3609,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3595
3609
  "onInput": _this.handleInputChange
3596
3610
  }, _this.prefix ? {
3597
3611
  prefix: _this.prefix
3598
- } : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 ? void 0 : _this$$slots9.prefix) === 'function' ? {
3612
+ } : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots10 = _this.$slots) === null || _this$$slots10 === void 0 ? void 0 : _this$$slots10.prefix) === 'function' ? {
3599
3613
  prefix: function prefix() {
3600
- var _this$$slots10, _this$$slots10$prefix;
3601
- return (_this$$slots10 = _this.$slots) === null || _this$$slots10 === void 0 || (_this$$slots10$prefix = _this$$slots10.prefix) === null || _this$$slots10$prefix === void 0 ? void 0 : _this$$slots10$prefix.call(_this$$slots10);
3614
+ var _this$$slots11, _this$$slots11$prefix;
3615
+ return (_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 || (_this$$slots11$prefix = _this$$slots11.prefix) === null || _this$$slots11$prefix === void 0 ? void 0 : _this$$slots11$prefix.call(_this$$slots11);
3602
3616
  }
3603
3617
  } : null), {}, {
3604
3618
  suffix: function suffix() {
@@ -3608,7 +3622,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3608
3622
  };
3609
3623
  // 渲染trigger
3610
3624
  var renderSelectTrigger = function renderSelectTrigger() {
3611
- var _this$$slots11, _this$$slots11$trigge;
3625
+ var _this$$slots12, _this$$slots12$trigge;
3612
3626
  return (0,external_vue_namespaceObject.createVNode)("div", {
3613
3627
  "ref": "triggerRef",
3614
3628
  "style": {
@@ -3618,7 +3632,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3618
3632
  "onClick": _this.handleTogglePopover,
3619
3633
  "onMouseenter": _this.setHover,
3620
3634
  "onMouseleave": _this.cancelHover
3621
- }, [((_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 || (_this$$slots11$trigge = _this$$slots11.trigger) === null || _this$$slots11$trigge === void 0 ? void 0 : _this$$slots11$trigge.call(_this$$slots11, {
3635
+ }, [((_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 || (_this$$slots12$trigge = _this$$slots12.trigger) === null || _this$$slots12$trigge === void 0 ? void 0 : _this$$slots12$trigge.call(_this$$slots12, {
3622
3636
  selected: _this.selected
3623
3637
  })) || renderTriggerInput()]);
3624
3638
  };
@@ -3636,10 +3650,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3636
3650
  }
3637
3651
  }, {
3638
3652
  "default": function _default(_ref3) {
3639
- var _this$$slots12, _this$$slots13;
3653
+ var _this$$slots13, _this$$slots14;
3640
3654
  var data = _ref3.data;
3641
3655
  // 兼容以前slots
3642
- var optionRender = ((_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 ? void 0 : _this$$slots12.optionRender) || ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.virtualScrollRender);
3656
+ var optionRender = ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.optionRender) || ((_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.virtualScrollRender);
3643
3657
  return data.map(function (item) {
3644
3658
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3645
3659
  "id": item[_this.idKey],
@@ -3655,9 +3669,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3655
3669
  });
3656
3670
  }
3657
3671
  }) : _this.filterList.map(function (item) {
3658
- var _this$$slots14, _this$$slots15;
3672
+ var _this$$slots15, _this$$slots16;
3659
3673
  // 兼容以前slots
3660
- var optionRender = ((_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.optionRender) || ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.virtualScrollRender);
3674
+ var optionRender = ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.optionRender) || ((_this$$slots16 = _this.$slots) === null || _this$$slots16 === void 0 ? void 0 : _this$$slots16.virtualScrollRender);
3661
3675
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3662
3676
  "id": item[_this.idKey],
3663
3677
  "key": item[_this.idKey],
@@ -3673,7 +3687,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3673
3687
  };
3674
3688
  // 渲染内容
3675
3689
  var renderSelectContent = function renderSelectContent() {
3676
- var _this$$slots16, _this$$slots16$defaul, _this$$slots17, _this$$slots18;
3690
+ var _this$$slots17, _this$$slots17$defaul, _this$$slots18, _this$$slots19;
3677
3691
  return (0,external_vue_namespaceObject.createVNode)("div", {
3678
3692
  "ref": "contentRef",
3679
3693
  "class": _this.resolveClassName('select-content-wrapper')
@@ -3710,7 +3724,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3710
3724
  "onScroll": _this.handleScroll
3711
3725
  }, [(0,external_vue_namespaceObject.createVNode)("ul", {
3712
3726
  "class": _this.resolveClassName('select-options')
3713
- }, [renderSelectAll(), renderList(), (_this$$slots16 = _this.$slots) === null || _this$$slots16 === void 0 || (_this$$slots16$defaul = _this$$slots16["default"]) === null || _this$$slots16$defaul === void 0 ? void 0 : _this$$slots16$defaul.call(_this$$slots16), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
3727
+ }, [renderSelectAll(), renderList(), (_this$$slots17 = _this.$slots) === null || _this$$slots17 === void 0 || (_this$$slots17$defaul = _this$$slots17["default"]) === null || _this$$slots17$defaul === void 0 ? void 0 : _this$$slots17$defaul.call(_this$$slots17), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
3714
3728
  "class": _this.resolveClassName('select-options-loading')
3715
3729
  }, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3716
3730
  "class": "spinner mr5",
@@ -3718,9 +3732,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3718
3732
  "mode": "spin",
3719
3733
  "size": "mini",
3720
3734
  "theme": "primary"
3721
- }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots17 = _this.$slots) === null || _this$$slots17 === void 0 ? void 0 : _this$$slots17.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
3735
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
3722
3736
  "class": _this.resolveClassName('select-extension')
3723
- }, [(_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension()])])]);
3737
+ }, [(_this$$slots19 = _this.$slots) === null || _this$$slots19 === void 0 ? void 0 : _this$$slots19.extension()])])]);
3724
3738
  };
3725
3739
  return (0,external_vue_namespaceObject.createVNode)("div", {
3726
3740
  "class": selectClass
@@ -46,6 +46,11 @@ declare const _default: import("vue").DefineComponent<{
46
46
  } & {
47
47
  default: boolean;
48
48
  };
49
+ allOptionText: import("vue-types").VueTypeValidableDef<string> & {
50
+ default: string;
51
+ } & {
52
+ default: string;
53
+ };
49
54
  allOptionId: import("vue-types").VueTypeDef<string | number>;
50
55
  showSelectAll: import("vue-types").VueTypeValidableDef<boolean> & {
51
56
  default: boolean;
@@ -679,6 +684,7 @@ declare const _default: import("vue").DefineComponent<{
679
684
  }>>>>;
680
685
  isAllSelected: import("vue").ComputedRef<boolean>;
681
686
  isAll: import("vue").ComputedRef<boolean>;
687
+ displayAllText: import("vue").ComputedRef<string>;
682
688
  focusInput: () => void;
683
689
  setHover: () => void;
684
690
  cancelHover: () => void;
@@ -756,6 +762,11 @@ declare const _default: import("vue").DefineComponent<{
756
762
  } & {
757
763
  default: boolean;
758
764
  };
765
+ allOptionText: import("vue-types").VueTypeValidableDef<string> & {
766
+ default: string;
767
+ } & {
768
+ default: string;
769
+ };
759
770
  allOptionId: import("vue-types").VueTypeDef<string | number>;
760
771
  showSelectAll: import("vue-types").VueTypeValidableDef<boolean> & {
761
772
  default: boolean;
@@ -1073,6 +1084,7 @@ declare const _default: import("vue").DefineComponent<{
1073
1084
  idKey: string;
1074
1085
  remoteMethod: (...args: any[]) => any;
1075
1086
  showAll: boolean;
1087
+ allOptionText: string;
1076
1088
  showSelectAll: boolean;
1077
1089
  multipleMode: string;
1078
1090
  autoHeight: boolean;
@@ -17917,7 +17917,7 @@ var tableProps = {
17917
17917
  /**
17918
17918
  * 启用Scrollbar
17919
17919
  */
17920
- scrollbar: shared_namespaceObject.PropTypes.bool.def(false),
17920
+ scrollbar: shared_namespaceObject.PropTypes.bool.def(true),
17921
17921
  // scrollbehavior: toType<`${ScrollBehavior}`>('ScrollBehavior', {
17922
17922
  /**
17923
17923
  * 固定在底部的配置项
@@ -24497,6 +24497,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24497
24497
  props: tableProps,
24498
24498
  emits: EMIT_EVENT_TYPES,
24499
24499
  setup: function setup(props, ctx) {
24500
+ if (false) {}
24500
24501
  var columns = use_columns(props);
24501
24502
  var rows = use_rows(props);
24502
24503
  var pagination = use_pagination(props);
@@ -17892,7 +17892,7 @@ var tableProps = {
17892
17892
  /**
17893
17893
  * 启用Scrollbar
17894
17894
  */
17895
- scrollbar: shared_namespaceObject.PropTypes.bool.def(false),
17895
+ scrollbar: shared_namespaceObject.PropTypes.bool.def(true),
17896
17896
  // scrollbehavior: toType<`${ScrollBehavior}`>('ScrollBehavior', {
17897
17897
  /**
17898
17898
  * 固定在底部的配置项
@@ -1632,8 +1632,8 @@ function _isSlot(s) {
1632
1632
  var size = value / Math.pow(1024, index);
1633
1633
  return "".concat(size.toFixed(2)).concat(uints[index]);
1634
1634
  }
1635
- function handleReview(file, e) {
1636
- emit('preview', file, e);
1635
+ function handlePreview(file, files, e) {
1636
+ emit('preview', file, files, e);
1637
1637
  }
1638
1638
  function handleRemove(file, e) {
1639
1639
  emit('remove', file, e);
@@ -1679,7 +1679,7 @@ function _isSlot(s) {
1679
1679
  }, [isShowPreview.value && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Eye, {
1680
1680
  "class": "action-icon",
1681
1681
  "onClick": function onClick(e) {
1682
- return handleReview(file, e);
1682
+ return handlePreview(file, props.files, e);
1683
1683
  }
1684
1684
  }, null), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
1685
1685
  "class": "action-icon",
@@ -1904,8 +1904,8 @@ const button_less_namespaceObject = button_less_x({ });
1904
1904
  e.stopPropagation();
1905
1905
  e.preventDefault();
1906
1906
  }
1907
- function handleReview(file, e) {
1908
- emit('preview', file, e);
1907
+ function handlePreview(file, e) {
1908
+ emit('preview', file, [file], e);
1909
1909
  e.stopPropagation();
1910
1910
  e.preventDefault();
1911
1911
  }
@@ -1977,7 +1977,7 @@ const button_less_namespaceObject = button_less_x({ });
1977
1977
  }, [isShowPreview.value && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Eye, {
1978
1978
  "class": "action-icon",
1979
1979
  "onClick": function onClick(e) {
1980
- return handleReview(file, e);
1980
+ return handlePreview(file, e);
1981
1981
  }
1982
1982
  }, null), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
1983
1983
  "class": "action-icon",
@@ -2757,8 +2757,8 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2757
2757
  _iterator.f();
2758
2758
  }
2759
2759
  }
2760
- function handlePreview(file) {
2761
- emit('preview', file);
2760
+ function handlePreview(file, files) {
2761
+ emit('preview', file, files);
2762
2762
  }
2763
2763
  function handleRetry(file) {
2764
2764
  send(file.raw);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.84",
3
+ "version": "2.0.1-beta.86",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",