bkui-vue 0.0.1-beta.452 → 0.0.1-beta.454

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -16255,10 +16255,7 @@ var SelectTagInput = defineComponent({
16255
16255
  [resolveClassName("select-tag--default")]: true,
16256
16256
  "is-disabled": this.disabled,
16257
16257
  "collapse-tag": this.collapseTags,
16258
- "has-prefix": !!prefix && (prefix == null ? void 0 : prefix.every((item) => {
16259
- var _a2;
16260
- return !!((_a2 = item.children) == null ? void 0 : _a2.length);
16261
- }))
16258
+ "has-prefix": !!prefix
16262
16259
  });
16263
16260
  const tagWrapperClass = classes({
16264
16261
  [resolveClassName("select-tag-wrapper")]: true
@@ -16454,7 +16451,7 @@ var Component$k = defineComponent({
16454
16451
  const isDisabled = computed(() => disabled.value || loading2.value);
16455
16452
  const selectedLabel = computed(() => selected.value.map((item) => {
16456
16453
  var _a, _b;
16457
- return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(item.value)) == null ? void 0 : _b.label) || item.label || listMap.value[item.value];
16454
+ return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(item.value)) == null ? void 0 : _b.label) || listMap.value[item.value] || item.label;
16458
16455
  }));
16459
16456
  const isAllSelected = computed(() => {
16460
16457
  const normalSelectedValues = options.value.reduce((pre, option) => {
@@ -16705,7 +16702,7 @@ var Component$k = defineComponent({
16705
16702
  }
16706
16703
  }
16707
16704
  }
16708
- return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(tmpValue)) == null ? void 0 : _b.label) || cacheSelectedMap.value[tmpValue] || listMap.value[tmpValue] || tmpValue;
16705
+ return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(tmpValue)) == null ? void 0 : _b.label) || listMap.value[tmpValue] || cacheSelectedMap.value[tmpValue] || tmpValue;
16709
16706
  };
16710
16707
  const handleSetSelectedData = () => {
16711
16708
  if (Array.isArray(modelValue.value)) {
@@ -16881,6 +16878,7 @@ var Component$k = defineComponent({
16881
16878
  }, null);
16882
16879
  };
16883
16880
  const renderTriggerInput = () => {
16881
+ var _a, _b;
16884
16882
  if (this.multipleMode === "tag") {
16885
16883
  return createVNode(SelectTagInput, {
16886
16884
  "ref": "selectTagInputRef",
@@ -16896,18 +16894,9 @@ var Component$k = defineComponent({
16896
16894
  "onEnter": this.handleInputEnter,
16897
16895
  "onKeydown": (_2, e) => this.handleKeydown(e)
16898
16896
  }, {
16899
- prefix: () => {
16900
- var _a, _b;
16901
- if (typeof this.$slots.prefix === "function") {
16902
- return (_b = (_a = this.$slots).prefix) == null ? void 0 : _b.call(_a);
16903
- }
16904
- if (this.prefix) {
16905
- return createVNode("div", {
16906
- "class": "bk-select--prefix-area"
16907
- }, [createVNode("span", null, [this.prefix])]);
16908
- }
16909
- return "";
16910
- },
16897
+ prefix: this.prefix ? createVNode("div", {
16898
+ "class": "bk-select--prefix-area"
16899
+ }, [createVNode("span", null, [this.prefix])]) : (_b = (_a = this.$slots).prefix) == null ? void 0 : _b.call(_a),
16911
16900
  default: this.$slots.tag && (() => this.$slots.tag({
16912
16901
  selected: this.selected
16913
16902
  })),
@@ -16932,8 +16921,8 @@ var Component$k = defineComponent({
16932
16921
  prefix: this.prefix
16933
16922
  } : null), __spreadProps(__spreadValues({}, typeof this.$slots.prefix === "function" ? {
16934
16923
  prefix: () => {
16935
- var _a, _b;
16936
- return (_b = (_a = this.$slots).prefix) == null ? void 0 : _b.call(_a);
16924
+ var _a2, _b2;
16925
+ return (_b2 = (_a2 = this.$slots).prefix) == null ? void 0 : _b2.call(_a2);
16937
16926
  }
16938
16927
  } : null), {
16939
16928
  suffix: () => suffixIcon()
@@ -17000,11 +16989,18 @@ var Component$k = defineComponent({
17000
16989
  }, {
17001
16990
  default: ({
17002
16991
  data: data2
17003
- }) => data2.map((item) => createVNode(BkOption, {
17004
- "key": item[this.idKey],
17005
- "value": item[this.idKey],
17006
- "label": item[this.displayKey]
17007
- }, null))
16992
+ }) => data2.map((item) => {
16993
+ var _a2, _b2;
16994
+ return createVNode(BkOption, {
16995
+ "key": item[this.idKey],
16996
+ "value": item[this.idKey],
16997
+ "label": item[this.displayKey]
16998
+ }, {
16999
+ default: (_b2 = (_a2 = this.$slots).virtualScrollRender) == null ? void 0 : _b2.call(_a2, {
17000
+ item
17001
+ })
17002
+ });
17003
+ })
17008
17004
  }) : this.list.map((item) => createVNode(BkOption, {
17009
17005
  "value": item[this.idKey],
17010
17006
  "label": item[this.displayKey]
@@ -40616,6 +40612,7 @@ var SearchSelectInput = defineComponent({
40616
40612
  }
40617
40613
  async function handleSelectItem(item, type) {
40618
40614
  var _a, _b, _c, _d, _e;
40615
+ console.info(item, "==========");
40619
40616
  if ((_a = item.value) == null ? void 0 : _a.id) {
40620
40617
  if (props2.valueBehavior === ValueBehavior.NEEDKEY && item.value || !props2.validateValues) {
40621
40618
  const seleted = new SelectedItem(__spreadProps(__spreadValues({}, item), {
@@ -40658,8 +40655,12 @@ var SearchSelectInput = defineComponent({
40658
40655
  handleSelectItem(item, "condition");
40659
40656
  }
40660
40657
  function handleMenuFooterClick(item) {
40658
+ var _a;
40661
40659
  switch (item.id) {
40662
40660
  case "confirm":
40661
+ if (!((_a = usingItem.value) == null ? void 0 : _a.values.length))
40662
+ return;
40663
+ keyword.value = "";
40663
40664
  handleKeyEnter();
40664
40665
  break;
40665
40666
  case "cancel":