sh-view 2.0.6 → 2.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sh-view",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "基于vxe-table二次封装",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -99,9 +99,8 @@ export default {
99
99
  })
100
100
  if (mount) {
101
101
  this.activeNames = activeNames
102
- if (this.collapsed) return
102
+ if (this.collapsed || this.mode !== 'vertical') return
103
103
  }
104
- if (this.mode !== 'vertical') return
105
104
  // 过滤掉所有子节点
106
105
  let menuIndex = activeNames.findIndex(item => item === menuName)
107
106
  let parentNames = activeNames.filter((item, itemIndex) => menuIndex >= itemIndex)