@bagelink/vue 1.7.49 → 1.7.51
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.mjs
CHANGED
|
@@ -9049,9 +9049,10 @@ var _hoisted_1$51 = ["title"], _hoisted_2$36 = ["for"], _hoisted_3$29 = { class:
|
|
|
9049
9049
|
if (M.multiselect) {
|
|
9050
9050
|
let t = [e].flat();
|
|
9051
9051
|
Kj(t, yj.value) || yj.value.splice(0, bj.value, ...t);
|
|
9052
|
-
} else
|
|
9052
|
+
} else if (e == null) yj.value.length > 0 && (yj.value = []);
|
|
9053
|
+
else {
|
|
9053
9054
|
let t = Array.isArray(M.options) ? M.options.find((t) => Bj(t) === e) ?? e : e;
|
|
9054
|
-
|
|
9055
|
+
Ij(t) || (yj.value = [t]);
|
|
9055
9056
|
}
|
|
9056
9057
|
}, { immediate: !0 }), watch(() => wj.value, (e) => {
|
|
9057
9058
|
e && (jj.value = -1, setTimeout(() => {
|
|
@@ -9076,7 +9077,7 @@ var _hoisted_1$51 = ["title"], _hoisted_2$36 = ["for"], _hoisted_3$29 = { class:
|
|
|
9076
9077
|
});
|
|
9077
9078
|
}, { deep: !0 }), onMounted(() => {
|
|
9078
9079
|
let e = M.options;
|
|
9079
|
-
if (M.defaultValue !== void 0 && Array.isArray(e)) {
|
|
9080
|
+
if (M.modelValue == null && M.defaultValue !== void 0 && Array.isArray(e)) {
|
|
9080
9081
|
let t = e.find((e) => Bj(e) === Bj(M.defaultValue));
|
|
9081
9082
|
if (t === void 0) return;
|
|
9082
9083
|
yj.value = [t];
|
|
@@ -9190,7 +9191,7 @@ var _hoisted_1$51 = ["title"], _hoisted_2$36 = ["for"], _hoisted_3$29 = { class:
|
|
|
9190
9191
|
_: 3
|
|
9191
9192
|
}, 8, ["shown", "placement"]));
|
|
9192
9193
|
}
|
|
9193
|
-
}), [["__scopeId", "data-v-
|
|
9194
|
+
}), [["__scopeId", "data-v-53212b64"]]), _hoisted_1$42 = ["title"], _hoisted_2$28 = ["for"], _hoisted_3$22 = { key: 0 }, _hoisted_4$13 = [
|
|
9194
9195
|
"id",
|
|
9195
9196
|
"name",
|
|
9196
9197
|
"title",
|