bkui-vue 0.0.1-beta.443 → 0.0.1-beta.444

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
@@ -19198,6 +19198,7 @@ var HeadFilter = defineComponent({
19198
19198
  state.isOpen = false;
19199
19199
  return;
19200
19200
  }
19201
+ filter.value.checked = state.checked;
19201
19202
  emit("change", [...state.checked], filterFn);
19202
19203
  }
19203
19204
  };
@@ -40165,6 +40166,7 @@ var SearchSelectInput = defineComponent({
40165
40166
  showInputBefore: Boolean,
40166
40167
  showCondition: Boolean,
40167
40168
  clickOutside: Function,
40169
+ placeholder: String,
40168
40170
  conditions: {
40169
40171
  type: Array,
40170
40172
  default: () => []
@@ -40668,7 +40670,7 @@ var SearchSelectInput = defineComponent({
40668
40670
  "input-after": showInputAfter
40669
40671
  },
40670
40672
  "contenteditable": true,
40671
- "data-placeholder": !inputInnerHtml && !this.keyword ? this.t.pleaseSelect : "",
40673
+ "data-placeholder": !inputInnerHtml && !this.keyword ? this.placeholder : "",
40672
40674
  "data-tips": placeholder || "",
40673
40675
  "spellcheck": "false",
40674
40676
  "onFocus": this.handleInputFocus,
@@ -40847,6 +40849,7 @@ const SearchSelectProps = {
40847
40849
  type: Boolean,
40848
40850
  default: true
40849
40851
  },
40852
+ placeholder: String,
40850
40853
  getMenuList: Function,
40851
40854
  validateValues: Function,
40852
40855
  valueSplitCode: {
@@ -40871,7 +40874,7 @@ var Component$1 = defineComponent({
40871
40874
  clickoutside: ClickOutside
40872
40875
  },
40873
40876
  props: SearchSelectProps,
40874
- emits: ["update:modelValue"],
40877
+ emits: ["update:modelValue", "search"],
40875
40878
  setup(props2, {
40876
40879
  emit
40877
40880
  }) {
@@ -41032,9 +41035,16 @@ var Component$1 = defineComponent({
41032
41035
  emit("update:modelValue", list.map((item) => item.toValue()));
41033
41036
  }
41034
41037
  function handleInputFocus(v2) {
41038
+ var _a;
41035
41039
  v2 && (overflowIndex.value = -1);
41040
+ if (v2 === false) {
41041
+ (_a = wrapRef.value.querySelector(".bk-search-select-container")) == null ? void 0 : _a.scrollTo(0, 0);
41042
+ }
41036
41043
  isFocus.value = v2;
41037
41044
  }
41045
+ function handleClickSearch(e) {
41046
+ emit("search", e);
41047
+ }
41038
41048
  return {
41039
41049
  inputRef,
41040
41050
  wrapRef,
@@ -41053,7 +41063,9 @@ var Component$1 = defineComponent({
41053
41063
  handleInputOutside,
41054
41064
  handleAddSelected,
41055
41065
  handleDeleteSelected,
41056
- localConditions
41066
+ handleClickSearch,
41067
+ localConditions,
41068
+ t: t2
41057
41069
  };
41058
41070
  },
41059
41071
  render() {
@@ -41099,6 +41111,7 @@ var Component$1 = defineComponent({
41099
41111
  "showInputBefore": !this.selectedList.length,
41100
41112
  "showCondition": showCondition,
41101
41113
  "conditions": this.localConditions,
41114
+ "placeholder": this.placeholder || this.t.pleaseSelect,
41102
41115
  "clickOutside": this.handleInputOutside,
41103
41116
  "getMenuList": this.getMenuList,
41104
41117
  "validateValues": this.validateValues,
@@ -41112,6 +41125,7 @@ var Component$1 = defineComponent({
41112
41125
  "class": "search-clear",
41113
41126
  "onClick": this.handleClearAll
41114
41127
  }, null), this.$slots.append ? this.$slots.append() : createVNode(search, {
41128
+ "onClick": this.handleClickSearch,
41115
41129
  "class": `search-nextfix-icon ${this.isFocus ? "is-focus" : ""}`
41116
41130
  }, null)])]), !!this.validateStr.length && createVNode("div", {
41117
41131
  "class": "bk-search-select-tips"