mirror of https://github.com/ElemeFE/element
				
				
				
			Fix #7656
							parent
							
								
									513294d159
								
							
						
					
					
						commit
						fb066a6e45
					
				| 
						 | 
				
			
			@ -14,3 +14,4 @@ fe.element/element-ui
 | 
			
		|||
coverage
 | 
			
		||||
waiter.config.js
 | 
			
		||||
build/bin/algolia-key.js
 | 
			
		||||
.envrc
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -48,7 +48,7 @@
 | 
			
		|||
        required: true
 | 
			
		||||
      },
 | 
			
		||||
      route: {
 | 
			
		||||
        type: Object,
 | 
			
		||||
        type: [String, Object],
 | 
			
		||||
        required: false
 | 
			
		||||
      },
 | 
			
		||||
      disabled: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -207,6 +207,7 @@
 | 
			
		|||
        let openedMenus = this.openedMenus;
 | 
			
		||||
        if (openedMenus.indexOf(index) !== -1) return;
 | 
			
		||||
        // 将不在该菜单路径下的其余菜单收起
 | 
			
		||||
        // GT: Will not put away the rest of the menu under the menu path
 | 
			
		||||
        if (this.uniqueOpened) {
 | 
			
		||||
          this.openedMenus = openedMenus.filter(index => {
 | 
			
		||||
            return indexPath.indexOf(index) !== -1;
 | 
			
		||||
| 
						 | 
				
			
			@ -246,6 +247,7 @@
 | 
			
		|||
        }
 | 
			
		||||
      },
 | 
			
		||||
      // 初始化展开菜单
 | 
			
		||||
      // GT: Initialize the launch menu
 | 
			
		||||
      initOpenedMenu() {
 | 
			
		||||
        const index = this.activeIndex;
 | 
			
		||||
        const activeItem = this.items[index];
 | 
			
		||||
| 
						 | 
				
			
			@ -254,6 +256,7 @@
 | 
			
		|||
        let indexPath = activeItem.indexPath;
 | 
			
		||||
 | 
			
		||||
        // 展开该菜单项的路径上所有子菜单
 | 
			
		||||
        // GT: Expand all submenus on the path of the menu item
 | 
			
		||||
        indexPath.forEach(index => {
 | 
			
		||||
          let submenu = this.submenus[index];
 | 
			
		||||
          submenu && this.openMenu(index, submenu.indexPath);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue