@deskhero/dh_ui 1.38.4 → 1.39.0

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/dh_ui.es.js CHANGED
@@ -10804,10 +10804,11 @@ const _sfc_main$m = defineComponent({
10804
10804
  }
10805
10805
  }
10806
10806
  });
10807
- const _hoisted_1$m = ["height", "src", "width"];
10807
+ const _hoisted_1$m = ["alt", "data-e2e", "height", "src", "width"];
10808
10808
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
10809
10809
  return openBlock(), createElementBlock("img", {
10810
- alt: "icon",
10810
+ alt: _ctx.iconName + `-icon`,
10811
+ "data-e2e": _ctx.iconName + `-icon`,
10811
10812
  class: normalizeClass({
10812
10813
  "active-hover": _ctx.activeOnHover,
10813
10814
  active: _ctx.active
@@ -10817,7 +10818,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
10817
10818
  width: _ctx.size
10818
10819
  }, null, 10, _hoisted_1$m);
10819
10820
  }
10820
- var DhIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$8], ["__scopeId", "data-v-201309a0"]]);
10821
+ var DhIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$8], ["__scopeId", "data-v-80baed02"]]);
10821
10822
  const _sfc_main$l = defineComponent({
10822
10823
  props: {
10823
10824
  data: {
@@ -26839,7 +26840,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
26839
26840
  }
26840
26841
  script.render = render;
26841
26842
  script.__file = "src/Multiselect.vue";
26842
- var default_css_vue_type_style_index_0_src_419e8ecc_lang = "";
26843
+ var default_css_vue_type_style_index_0_src_4c4a0fd4_lang = "";
26843
26844
  var InputList_vue_vue_type_style_index_1_lang = "";
26844
26845
  const _hoisted_1$8 = /* @__PURE__ */ createElementVNode("img", {
26845
26846
  alt: "",
@@ -26868,16 +26869,20 @@ const _sfc_main$9 = {
26868
26869
  default: "value"
26869
26870
  }
26870
26871
  },
26871
- setup(__props) {
26872
+ emits: ["update"],
26873
+ setup(__props, { emit }) {
26872
26874
  useCssVars((_ctx) => ({
26873
- "196df4df": __props.maxHeight
26875
+ "2e2d7013": __props.maxHeight
26874
26876
  }));
26875
- const value = ref(null);
26877
+ const inputVal = ref(null);
26878
+ function update() {
26879
+ emit("update", inputVal.value);
26880
+ }
26876
26881
  return (_ctx, _cache) => {
26877
26882
  return openBlock(), createElementBlock(Fragment, null, [
26878
26883
  createVNode(unref(script), {
26879
- modelValue: value.value,
26880
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
26884
+ modelValue: inputVal.value,
26885
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
26881
26886
  label: __props.labelProp,
26882
26887
  mode: "tags",
26883
26888
  native: false,
@@ -26885,7 +26890,8 @@ const _sfc_main$9 = {
26885
26890
  options: __props.list,
26886
26891
  placeholder: "Start typing a name",
26887
26892
  searchable: true,
26888
- "value-prop": __props.idProp
26893
+ "value-prop": __props.idProp,
26894
+ onSelect: update
26889
26895
  }, {
26890
26896
  tag: withCtx(({ option, handleTagRemove, disabled }) => [
26891
26897
  (openBlock(), createBlock(Teleport, { to: "#list" }, [