@v-c/select 1.3.4 → 1.3.5
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/Select.js +4 -3
- package/package.json +4 -4
package/dist/Select.js
CHANGED
|
@@ -627,12 +627,13 @@ var Select = /* @__PURE__ */ defineComponent({
|
|
|
627
627
|
};
|
|
628
628
|
});
|
|
629
629
|
};
|
|
630
|
-
const
|
|
630
|
+
const innerValue = shallowRef(props.defaultValue);
|
|
631
|
+
const internalValue = computed(() => props.value !== void 0 ? props.value : innerValue.value);
|
|
631
632
|
watch(() => props.value, (val) => {
|
|
632
|
-
|
|
633
|
+
innerValue.value = val;
|
|
633
634
|
});
|
|
634
635
|
const setInternalValue = (val) => {
|
|
635
|
-
|
|
636
|
+
if (props.value === void 0) innerValue.value = val;
|
|
636
637
|
};
|
|
637
638
|
const rawLabeledValues = computed(() => {
|
|
638
639
|
const newInternalValue = multiple.value && internalValue.value === null ? [] : internalValue.value;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/select",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"vue": "^3.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@v-c/util": "^1.4.3",
|
|
38
|
-
"@v-c/trigger": "^1.1.7",
|
|
39
37
|
"@v-c/overflow": "^1.1.3",
|
|
40
|
-
"@v-c/
|
|
38
|
+
"@v-c/util": "^1.4.4",
|
|
39
|
+
"@v-c/virtual-list": "^1.1.8",
|
|
40
|
+
"@v-c/trigger": "^1.1.7"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "vite build",
|