Commit 5a2efc4a6cbf944a7905ece7e47210d6d5113862
1 parent
3bc262e9
update
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
src/components/menu/menu-group.vue
@@ -5,7 +5,6 @@ | @@ -5,7 +5,6 @@ | ||
5 | </li> | 5 | </li> |
6 | </template> | 6 | </template> |
7 | <script> | 7 | <script> |
8 | - import { findComponentUpward, findComponentsUpward } from '../../utils/assist'; | ||
9 | import mixin from './mixin'; | 8 | import mixin from './mixin'; |
10 | const prefixCls = 'ivu-menu'; | 9 | const prefixCls = 'ivu-menu'; |
11 | 10 |
src/components/menu/submenu.vue
@@ -72,7 +72,7 @@ | @@ -72,7 +72,7 @@ | ||
72 | return style; | 72 | return style; |
73 | }, | 73 | }, |
74 | titleStyle () { | 74 | titleStyle () { |
75 | - return this.hasParentSubmenu ? { | 75 | + return this.hasParentSubmenu && this.mode !== 'horizontal' ? { |
76 | paddingLeft: 43 + (this.parentSubmenuNum - 1) * 24 + 'px' | 76 | paddingLeft: 43 + (this.parentSubmenuNum - 1) * 24 + 'px' |
77 | } : {}; | 77 | } : {}; |
78 | } | 78 | } |