@deskhero/dh_ui 1.44.4 → 1.44.6
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
|
@@ -24821,11 +24821,6 @@ const _sfc_main$c = {
|
|
|
24821
24821
|
required: false,
|
|
24822
24822
|
default: 0
|
|
24823
24823
|
},
|
|
24824
|
-
inputValue: {
|
|
24825
|
-
type: String,
|
|
24826
|
-
required: false,
|
|
24827
|
-
default: ""
|
|
24828
|
-
},
|
|
24829
24824
|
inputIndex: {
|
|
24830
24825
|
type: Number,
|
|
24831
24826
|
required: false,
|
|
@@ -24846,7 +24841,6 @@ const _sfc_main$c = {
|
|
|
24846
24841
|
const props = __props;
|
|
24847
24842
|
const multiple = reactive(props.multipleProp);
|
|
24848
24843
|
function updateDropdown(name, email, index) {
|
|
24849
|
-
console.log(multiple);
|
|
24850
24844
|
if (multiple) {
|
|
24851
24845
|
multiple.map((item) => {
|
|
24852
24846
|
if (item.id === index) {
|
|
@@ -24886,7 +24880,7 @@ const _sfc_main$c = {
|
|
|
24886
24880
|
key: index,
|
|
24887
24881
|
icon: props.icon,
|
|
24888
24882
|
"input-index": item.id,
|
|
24889
|
-
"input-value": item.
|
|
24883
|
+
"input-value": item.input,
|
|
24890
24884
|
"input-width": props.inputWidth,
|
|
24891
24885
|
list: item.list,
|
|
24892
24886
|
"placeholder-input": props.placeholderInput,
|
|
@@ -27143,7 +27137,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27143
27137
|
}
|
|
27144
27138
|
script.render = render;
|
|
27145
27139
|
script.__file = "src/Multiselect.vue";
|
|
27146
|
-
var
|
|
27140
|
+
var default_css_vue_type_style_index_0_src_70b3ed2d_lang = "";
|
|
27147
27141
|
var InputList_vue_vue_type_style_index_1_lang = "";
|
|
27148
27142
|
const _hoisted_1$9 = /* @__PURE__ */ createElementVNode("img", {
|
|
27149
27143
|
alt: "",
|
|
@@ -27170,17 +27164,35 @@ const _sfc_main$a = {
|
|
|
27170
27164
|
idProp: {
|
|
27171
27165
|
type: String,
|
|
27172
27166
|
default: "value"
|
|
27167
|
+
},
|
|
27168
|
+
selectItems: {
|
|
27169
|
+
type: Array,
|
|
27170
|
+
required: true
|
|
27173
27171
|
}
|
|
27174
27172
|
},
|
|
27175
27173
|
emits: ["update"],
|
|
27176
27174
|
setup(__props, { emit }) {
|
|
27175
|
+
const props = __props;
|
|
27177
27176
|
useCssVars((_ctx) => ({
|
|
27178
|
-
"
|
|
27177
|
+
"6af3e44c": __props.maxHeight
|
|
27179
27178
|
}));
|
|
27180
27179
|
const inputVal = ref(null);
|
|
27181
27180
|
function update() {
|
|
27182
27181
|
emit("update", inputVal.value);
|
|
27183
27182
|
}
|
|
27183
|
+
watch(() => props.selectItems, (value) => {
|
|
27184
|
+
if (!value) {
|
|
27185
|
+
return;
|
|
27186
|
+
}
|
|
27187
|
+
if (!inputVal.value) {
|
|
27188
|
+
const selectedItems = props.list.filter((item) => value == item.value);
|
|
27189
|
+
inputVal.value = selectedItems;
|
|
27190
|
+
} else {
|
|
27191
|
+
const selectedItems = props.list.filter((item) => value == item.value);
|
|
27192
|
+
inputVal.value = [...inputVal.value, ...selectedItems];
|
|
27193
|
+
inputVal.value = [...new Set(inputVal.value)];
|
|
27194
|
+
}
|
|
27195
|
+
});
|
|
27184
27196
|
return (_ctx, _cache) => {
|
|
27185
27197
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
27186
27198
|
createVNode(unref(script), {
|