bkui-vue 2.0.1-beta.46 → 2.0.1-beta.47
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 +1 -1
- package/dist/index.esm.js +11 -2
- package/dist/index.umd.js +1 -1
- package/lib/index.js +1 -1
- package/lib/tree/index.js +4 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/tree/index.js
CHANGED
@@ -19917,9 +19917,11 @@ var use_tree_init_this = undefined;
|
|
19917
19917
|
var filterFn = function filterFn(item) {
|
19918
19918
|
if (isSearchActive.value) {
|
19919
19919
|
if (showChildNodes) {
|
19920
|
+
var _getNodePath;
|
19921
|
+
var itemPath = (_getNodePath = getNodePath(item)) !== null && _getNodePath !== void 0 ? _getNodePath : '';
|
19922
|
+
var asParentPath = "".concat(itemPath, "-");
|
19920
19923
|
return checkNodeIsOpen(item) && (isNodeMatched(item) || matchedNodePath.some(function (path) {
|
19921
|
-
|
19922
|
-
return ((_getNodePath = getNodePath(item)) !== null && _getNodePath !== void 0 ? _getNodePath : '').indexOf(path) === 0;
|
19924
|
+
return asParentPath.indexOf("".concat(path, "-")) === 0;
|
19923
19925
|
}));
|
19924
19926
|
}
|
19925
19927
|
return checkNodeIsOpen(item) && isNodeMatched(item);
|