bkui-vue 2.0.2-beta.78 → 2.0.2-beta.79
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/index.cjs.js +10 -10
- package/dist/index.esm.js +364 -364
- package/dist/index.umd.js +10 -10
- package/lib/index.js +1 -1
- package/lib/tree/index.js +12 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/tree/index.js
CHANGED
|
@@ -20175,9 +20175,18 @@ var use_tree_init_this = undefined;
|
|
|
20175
20175
|
var _getNodePath;
|
|
20176
20176
|
var itemPath = (_getNodePath = getNodePath(item)) !== null && _getNodePath !== void 0 ? _getNodePath : '';
|
|
20177
20177
|
var asParentPath = "".concat(itemPath, "-");
|
|
20178
|
-
|
|
20179
|
-
|
|
20180
|
-
|
|
20178
|
+
var isNodeOpen = checkNodeIsOpen(item);
|
|
20179
|
+
var isNodeMatch = isNodeMatched(item);
|
|
20180
|
+
var isNodeRoot = isRootNode(item);
|
|
20181
|
+
if (isNodeOpen) {
|
|
20182
|
+
if (isNodeRoot) {
|
|
20183
|
+
return isNodeMatch;
|
|
20184
|
+
}
|
|
20185
|
+
return isNodeMatch || matchedNodePath.some(function (path) {
|
|
20186
|
+
return asParentPath.indexOf("".concat(path, "-")) === 0;
|
|
20187
|
+
});
|
|
20188
|
+
}
|
|
20189
|
+
return false;
|
|
20181
20190
|
}
|
|
20182
20191
|
return checkNodeIsOpen(item) && isNodeMatched(item);
|
|
20183
20192
|
}
|