fix
							parent
							
								
									d01d6eac06
								
							
						
					
					
						commit
						6b7b035a84
					
				|  | @ -15,6 +15,8 @@ The menu has multiple levels. | |||
|       Cascading menu <a-icon type="down" /> | ||||
|     </a> | ||||
|     <a-menu slot="overlay"> | ||||
|       <a-menu-item>1st menu item</a-menu-item> | ||||
|       <a-menu-item>2nd menu item</a-menu-item> | ||||
|       <a-sub-menu title="sub menu" key="test"> | ||||
|         <a-menu-item>3rd menu item</a-menu-item> | ||||
|         <a-menu-item>4th menu item</a-menu-item> | ||||
|  |  | |||
|  | @ -47,6 +47,7 @@ const Dropdown = { | |||
|       props: { | ||||
|         mode: 'vertical', | ||||
|         selectable, | ||||
|         isRootMenu: false, | ||||
|       }, | ||||
|     }) | ||||
|     const dropdownProps = { | ||||
|  |  | |||
|  | @ -27,9 +27,11 @@ export const menuProps = { | |||
|   multiple: PropTypes.bool, | ||||
|   inlineIndent: PropTypes.number.def(24), | ||||
|   inlineCollapsed: PropTypes.bool, | ||||
|   isRootMenu: PropTypes.bool.def(true), | ||||
| } | ||||
| 
 | ||||
| export default { | ||||
|   name: 'Menu', | ||||
|   props: menuProps, | ||||
|   Divider, | ||||
|   Item, | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ const Menu = { | |||
|       sOpenKeys = props.openKeys || [] | ||||
|     } | ||||
| 
 | ||||
|     this.isRootMenu = true | ||||
|     // this.isRootMenu = true | ||||
|     return { | ||||
|       sSelectedKeys, | ||||
|       sOpenKeys, | ||||
|  | @ -177,7 +177,7 @@ const Menu = { | |||
|         openKeys: state.sOpenKeys, | ||||
|         selectedKeys: state.sSelectedKeys, | ||||
|         triggerSubMenuAction: this.$props.triggerSubMenuAction, | ||||
|         isRootMenu: true, | ||||
|         isRootMenu: this.isRootMenu, | ||||
|       } | ||||
|       return this.renderCommonMenuItem(c, i, subIndex, extraProps) | ||||
|     }, | ||||
|  |  | |||
|  | @ -22,4 +22,5 @@ export default { | |||
|   openTransitionName: PropTypes.string, | ||||
|   forceSubMenuRender: PropTypes.bool, | ||||
|   selectable: PropTypes.bool, | ||||
|   isRootMenu: PropTypes.bool, | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 tangjinzhou
						tangjinzhou