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/lib/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.78";
6
+ export const version = "2.0.2-beta.79";
7
7
  window.__bkui_vue_version__ = version;
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
- return checkNodeIsOpen(item) && (isNodeMatched(item) || matchedNodePath.some(function (path) {
20179
- return asParentPath.indexOf("".concat(path, "-")) === 0;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.78",
3
+ "version": "2.0.2-beta.79",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",