@v-c/select 0.0.4 → 0.0.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.cjs +4 -4
- package/dist/Select.js +4 -4
- package/package.json +4 -4
package/dist/Select.cjs
CHANGED
|
@@ -613,12 +613,12 @@ var Select = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
613
613
|
};
|
|
614
614
|
});
|
|
615
615
|
};
|
|
616
|
-
const internalValue = (0, vue.shallowRef)(props.defaultValue);
|
|
616
|
+
const internalValue = (0, vue.shallowRef)(props?.value ?? props.defaultValue);
|
|
617
617
|
(0, vue.watch)(() => props.value, (val) => {
|
|
618
|
-
|
|
619
|
-
}
|
|
618
|
+
internalValue.value = val;
|
|
619
|
+
});
|
|
620
620
|
const setInternalValue = (val) => {
|
|
621
|
-
|
|
621
|
+
internalValue.value = val;
|
|
622
622
|
};
|
|
623
623
|
const [mergedValues, getMixedOption] = require_useCache.default((0, vue.computed)(() => {
|
|
624
624
|
const values = convert2LabelValues(multiple.value && internalValue.value === null ? [] : internalValue.value);
|
package/dist/Select.js
CHANGED
|
@@ -609,12 +609,12 @@ var Select_default = /* @__PURE__ */ defineComponent({
|
|
|
609
609
|
};
|
|
610
610
|
});
|
|
611
611
|
};
|
|
612
|
-
const internalValue = shallowRef(props.defaultValue);
|
|
612
|
+
const internalValue = shallowRef(props?.value ?? props.defaultValue);
|
|
613
613
|
watch(() => props.value, (val) => {
|
|
614
|
-
|
|
615
|
-
}
|
|
614
|
+
internalValue.value = val;
|
|
615
|
+
});
|
|
616
616
|
const setInternalValue = (val) => {
|
|
617
|
-
|
|
617
|
+
internalValue.value = val;
|
|
618
618
|
};
|
|
619
619
|
const [mergedValues, getMixedOption] = useCache(computed(() => {
|
|
620
620
|
const values = convert2LabelValues(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": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"vue": "^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@v-c/overflow": "^1.0.0",
|
|
33
|
-
"@v-c/trigger": "^1.0.1",
|
|
34
32
|
"@v-c/virtual-list": "^1.0.3",
|
|
35
|
-
"@v-c/
|
|
33
|
+
"@v-c/overflow": "^1.0.0",
|
|
34
|
+
"@v-c/util": "^1.0.2",
|
|
35
|
+
"@v-c/trigger": "^1.0.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "vite build",
|