@v-c/cascader 1.0.1 → 1.0.2
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/OptionList/List.js +3 -3
- package/package.json +4 -4
package/dist/OptionList/List.js
CHANGED
|
@@ -4,7 +4,7 @@ import { toPathOptions } from "../utils/treeUtil.js";
|
|
|
4
4
|
import Column_default, { FIX_LABEL } from "./Column.js";
|
|
5
5
|
import useActive_default from "./useActive.js";
|
|
6
6
|
import useKeyboard from "./useKeyboard.js";
|
|
7
|
-
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, nextTick, ref, shallowRef, watch, watchEffect } from "vue";
|
|
7
|
+
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, nextTick, onBeforeUpdate, ref, shallowRef, watch, watchEffect } from "vue";
|
|
8
8
|
import { clsx } from "@v-c/util";
|
|
9
9
|
var List_default = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
10
10
|
const containerRef = ref(null);
|
|
@@ -61,8 +61,8 @@ var List_default = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
61
61
|
return context.value?.options || [];
|
|
62
62
|
});
|
|
63
63
|
const mergedOptions = shallowRef(filteredOptions.value);
|
|
64
|
-
|
|
65
|
-
mergedOptions.value = filteredOptions.value;
|
|
64
|
+
onBeforeUpdate(() => {
|
|
65
|
+
if (!!props.open && !props.lockOptions && mergedOptions.value !== filteredOptions.value) mergedOptions.value = filteredOptions.value;
|
|
66
66
|
});
|
|
67
67
|
const optionColumns = computed(() => {
|
|
68
68
|
const fieldNames = mergedFieldNames.value;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/cascader",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"vue": "^3.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@v-c/select": "^1.0.
|
|
28
|
-
"@v-c/tree": "^1.0.
|
|
29
|
-
"@v-c/util": "^1.0.
|
|
27
|
+
"@v-c/select": "^1.0.16",
|
|
28
|
+
"@v-c/tree": "^1.0.4",
|
|
29
|
+
"@v-c/util": "^1.0.17"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "vite build",
|