hy-virtual-tree 1.1.30 → 1.1.31
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/CHANGELOG.md +7 -0
- package/dist/index.js +13 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1924,7 +1924,7 @@ class VirtualTree {
|
|
|
1924
1924
|
return;
|
|
1925
1925
|
this._tree = await this._createTree(config.data);
|
|
1926
1926
|
this._flattenTree = this._genereateFlattenTree();
|
|
1927
|
-
const { checkedKeys, updateCheckedKeys, isIndeterminate, isChecked, toggleCheckbox, getChecked,
|
|
1927
|
+
const { checkedKeys, updateCheckedKeys, isIndeterminate, isChecked, toggleCheckbox, getChecked, getCheckedKeys, getCheckedNodes,
|
|
1928
1928
|
// getHalfCheckedKeys,
|
|
1929
1929
|
// getHalfCheckedNodes,
|
|
1930
1930
|
setChecked, setCheckedKeys, setCheckedNodes } = useCheck(config, this._tree);
|
|
@@ -2292,7 +2292,7 @@ class VirtualTree {
|
|
|
2292
2292
|
reject({});
|
|
2293
2293
|
return;
|
|
2294
2294
|
}
|
|
2295
|
-
const { tree
|
|
2295
|
+
const { tree } = updateMethod(this._tree, data, {
|
|
2296
2296
|
business: this._business,
|
|
2297
2297
|
props: {
|
|
2298
2298
|
value: this._props.value,
|
|
@@ -2304,17 +2304,18 @@ class VirtualTree {
|
|
|
2304
2304
|
businessConfig: this._businessConfig
|
|
2305
2305
|
});
|
|
2306
2306
|
Object.assign(this._tree, tree);
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
}
|
|
2307
|
+
// 设备离线时取消勾选状态
|
|
2308
|
+
// let updateNode = null
|
|
2309
|
+
// for (const node of (beOfflineList || [])) {
|
|
2310
|
+
// if (checkedKeys.has(node.key)) {
|
|
2311
|
+
// checkedKeys.delete(node.key)
|
|
2312
|
+
// updateNode = node
|
|
2313
|
+
// }
|
|
2314
|
+
// }
|
|
2314
2315
|
updateCheckedKeys();
|
|
2315
|
-
if (updateNode) {
|
|
2316
|
-
|
|
2317
|
-
}
|
|
2316
|
+
// if (updateNode) {
|
|
2317
|
+
// afterNodeCheck(updateNode, false)
|
|
2318
|
+
// }
|
|
2318
2319
|
resolve({});
|
|
2319
2320
|
return;
|
|
2320
2321
|
}
|