@voicenter-team/voicenter-ui-plus 0.0.50 → 0.0.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/library/super.mjs
CHANGED
|
@@ -15052,7 +15052,8 @@ const iv = /* @__PURE__ */ he(Dx, [["render", xx]]), Rx = "value", Fx = "label",
|
|
|
15052
15052
|
],
|
|
15053
15053
|
data() {
|
|
15054
15054
|
return {
|
|
15055
|
-
colorClass: "vc-select--"
|
|
15055
|
+
colorClass: "vc-select--",
|
|
15056
|
+
selected: null
|
|
15056
15057
|
};
|
|
15057
15058
|
},
|
|
15058
15059
|
computed: {
|
|
@@ -15097,10 +15098,10 @@ const iv = /* @__PURE__ */ he(Dx, [["render", xx]]), Rx = "value", Fx = "label",
|
|
|
15097
15098
|
onModelChange(e) {
|
|
15098
15099
|
if (this.multiple && Array.isArray(e)) {
|
|
15099
15100
|
const t = this.selectOptions.filter((n) => e.includes(n[this.optionValueKey]));
|
|
15100
|
-
this.$emit("change", t);
|
|
15101
|
+
this.selected = t, this.$emit("change", t);
|
|
15101
15102
|
} else {
|
|
15102
15103
|
const t = this.selectOptions.find((n) => n[this.optionValueKey] === e);
|
|
15103
|
-
this.$emit("change", t);
|
|
15104
|
+
this.selected = t, this.$emit("change", t);
|
|
15104
15105
|
}
|
|
15105
15106
|
},
|
|
15106
15107
|
onVisibleChange(e) {
|
|
@@ -15184,7 +15185,7 @@ function Bx(e, t, n, r, i, a) {
|
|
|
15184
15185
|
e.prefixIcon || e.$slots["prefix-icon"] ? {
|
|
15185
15186
|
name: "prefix",
|
|
15186
15187
|
fn: G(() => [
|
|
15187
|
-
H(e.$slots, "prefix-icon", {}, () => [
|
|
15188
|
+
H(e.$slots, "prefix-icon", { selected: e.selected }, () => [
|
|
15188
15189
|
_("i", {
|
|
15189
15190
|
class: L([e.prefixClasses, "vc-select__prefix-icon"]),
|
|
15190
15191
|
style: ye(e.prefixStyle)
|