@rocketui/vue 0.2.47 → 0.2.49
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.d.ts +4 -0
- package/dist/rocket-ui-vue.js +4 -8
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.d.ts
CHANGED
|
@@ -2295,6 +2295,8 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
|
|
|
2295
2295
|
selectAllText: string;
|
|
2296
2296
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2297
2297
|
"update:modelValue": (...args: any[]) => void;
|
|
2298
|
+
clear: (...args: any[]) => void;
|
|
2299
|
+
removeOption: (...args: any[]) => void;
|
|
2298
2300
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_8<SelectProps>, {
|
|
2299
2301
|
options: () => never[];
|
|
2300
2302
|
modelValue: any;
|
|
@@ -2323,6 +2325,8 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
|
|
|
2323
2325
|
selectAllText: string;
|
|
2324
2326
|
}>>> & {
|
|
2325
2327
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2328
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
2329
|
+
onRemoveOption?: ((...args: any[]) => any) | undefined;
|
|
2326
2330
|
}, {
|
|
2327
2331
|
disabled: boolean;
|
|
2328
2332
|
prependIcon: string;
|
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -8898,7 +8898,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8898
8898
|
showSelectAll: { type: Boolean, default: !1 },
|
|
8899
8899
|
selectAllText: { default: "Select all" }
|
|
8900
8900
|
},
|
|
8901
|
-
emits: ["update:modelValue"],
|
|
8901
|
+
emits: ["update:modelValue", "clear", "removeOption"],
|
|
8902
8902
|
setup(H, { emit: V }) {
|
|
8903
8903
|
const C = H, M = V, i = N({}), L = N([]), A = N(!1), e = N("");
|
|
8904
8904
|
function d(a) {
|
|
@@ -8958,7 +8958,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8958
8958
|
}
|
|
8959
8959
|
function k(a, s) {
|
|
8960
8960
|
if (i.value.value === s.value) {
|
|
8961
|
-
i.value = {}, e.value = "", M("update:modelValue", "");
|
|
8961
|
+
i.value = {}, e.value = "", M("update:modelValue", ""), M("removeOption", s);
|
|
8962
8962
|
return;
|
|
8963
8963
|
}
|
|
8964
8964
|
e.value = s.label, i.value = s, M("update:modelValue", s);
|
|
@@ -8989,14 +8989,10 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8989
8989
|
n.value ? C.multiple ? L.value = n.value : (i.value = n.value, e.value = n.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
|
|
8990
8990
|
}
|
|
8991
8991
|
function h(a) {
|
|
8992
|
-
C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""));
|
|
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
|
-
|
|
8996
|
-
L.value.splice(0, L.value.length);
|
|
8997
|
-
return;
|
|
8998
|
-
}
|
|
8999
|
-
i.value = {}, e.value = "", M("update:modelValue", "");
|
|
8995
|
+
a.stopPropagation(), s(), C.multiple && L.value.splice(0, L.value.length), i.value = {}, e.value = "", M("update:modelValue", ""), M("clear");
|
|
9000
8996
|
}
|
|
9001
8997
|
function M1() {
|
|
9002
8998
|
if (L.value.length === y.value.length) {
|