@rocketui/vue 0.2.50 → 0.2.52
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/rocket-ui-vue.js
CHANGED
|
@@ -8950,7 +8950,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8950
8950
|
return;
|
|
8951
8951
|
}
|
|
8952
8952
|
if (C.multiple) {
|
|
8953
|
-
L.value.find((_) => _.value === s.value) ? L.value.splice(L.value.indexOf(s), 1) : L.value.push(s), e.value = "", C.searchable && ((c = o.value) == null || c.focus());
|
|
8953
|
+
L.value.find((_) => _.value === s.value) ? (L.value.splice(L.value.indexOf(s), 1), M("removeOption", s)) : L.value.push(s), e.value = "", C.searchable && ((c = o.value) == null || c.focus());
|
|
8954
8954
|
return;
|
|
8955
8955
|
}
|
|
8956
8956
|
k(a, s), C.closeOnSelect && P();
|
|
@@ -8992,7 +8992,11 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8992
8992
|
C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""), M("removeOption", i.value));
|
|
8993
8993
|
}
|
|
8994
8994
|
function I(a, s) {
|
|
8995
|
-
a.stopPropagation(), s(), C.multiple
|
|
8995
|
+
if (a.stopPropagation(), s(), C.multiple) {
|
|
8996
|
+
L.value.splice(0, L.value.length), M("clear", L.value);
|
|
8997
|
+
return;
|
|
8998
|
+
}
|
|
8999
|
+
i.value = {}, e.value = "", M("update:modelValue", ""), M("clear", i.value);
|
|
8996
9000
|
}
|
|
8997
9001
|
function M1() {
|
|
8998
9002
|
if (L.value.length === y.value.length) {
|