Commit fd5cd82376f09f489df27be82a8441bd64aedb61
1 parent
21cc957a
publish 0.9.10-rc-1
publish Menu component
Showing
5 changed files
with
8 additions
and
5 deletions
Show diff stats
assets/iview.png
package.json
src/components/menu/menu.vue
... | ... | @@ -41,11 +41,14 @@ |
41 | 41 | }, |
42 | 42 | computed: { |
43 | 43 | classes () { |
44 | + let theme = this.theme; | |
45 | + if (this.mode === 'vertical' && this.theme === 'primary') theme = 'light'; | |
46 | + | |
44 | 47 | return [ |
45 | 48 | `${prefixCls}`, |
49 | + `${prefixCls}-${theme}`, | |
46 | 50 | { |
47 | - [`${prefixCls}-${this.mode}`]: this.mode, | |
48 | - [`${prefixCls}-${this.theme}`]: this.mode === 'horizontal' || (this.mode === 'vertical' && this.theme !== 'primary') | |
51 | + [`${prefixCls}-${this.mode}`]: this.mode | |
49 | 52 | } |
50 | 53 | ] |
51 | 54 | } | ... | ... |
src/components/menu/submenu.vue