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
|
@@ -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)
|