@v-c/tree 1.1.1 → 1.1.3
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/Tree.js +5 -3
- package/package.json +8 -3
package/dist/Tree.js
CHANGED
|
@@ -121,7 +121,8 @@ var Tree = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) =>
|
|
|
121
121
|
};
|
|
122
122
|
watch(() => props.checkedKeys, () => {
|
|
123
123
|
if (props.checkedKeys === void 0) return;
|
|
124
|
-
|
|
124
|
+
const parsed = parseCheckedKeys(props.checkedKeys);
|
|
125
|
+
rawCheckedKeys.value = parsed?.checkedKeys || [];
|
|
125
126
|
});
|
|
126
127
|
const rawHalfCheckedKeys = shallowRef(defaultCheckedKeyEntity.halfCheckedKeys);
|
|
127
128
|
const setRawHalfCheckedKeys = (keys) => {
|
|
@@ -129,7 +130,8 @@ var Tree = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) =>
|
|
|
129
130
|
};
|
|
130
131
|
watch(() => props.checkedKeys, () => {
|
|
131
132
|
if (props.checkedKeys === void 0) return;
|
|
132
|
-
|
|
133
|
+
const parsed = parseCheckedKeys(props.checkedKeys);
|
|
134
|
+
rawHalfCheckedKeys.value = parsed?.halfCheckedKeys || [];
|
|
133
135
|
});
|
|
134
136
|
const mergedChecked = computed(() => {
|
|
135
137
|
if (!mergedCheckable.value) return {
|
|
@@ -753,7 +755,7 @@ var Tree = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) =>
|
|
|
753
755
|
}, getTreeNodeRequiredProps.value, domProps), null)]);
|
|
754
756
|
};
|
|
755
757
|
}, {
|
|
756
|
-
props:
|
|
758
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
757
759
|
prefixCls: {
|
|
758
760
|
type: String,
|
|
759
761
|
required: false,
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/tree",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/antdv-next/vue-components/tree/next/packages/tree",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/antdv-next/vue-components.git"
|
|
15
|
+
},
|
|
11
16
|
"keywords": [
|
|
12
17
|
"trigger"
|
|
13
18
|
],
|
|
@@ -29,8 +34,8 @@
|
|
|
29
34
|
"vue": "^3.0.0"
|
|
30
35
|
},
|
|
31
36
|
"dependencies": {
|
|
32
|
-
"@v-c/util": "^1.0
|
|
33
|
-
"@v-c/virtual-list": "^1.0
|
|
37
|
+
"@v-c/util": "^1.1.0",
|
|
38
|
+
"@v-c/virtual-list": "^1.1.0"
|
|
34
39
|
},
|
|
35
40
|
"scripts": {
|
|
36
41
|
"build": "vite build",
|