Commit fd5cd82376f09f489df27be82a8441bd64aedb61

Authored by 梁灏
1 parent 21cc957a

publish 0.9.10-rc-1

publish Menu component
assets/iview.png

162 KB | W: | H:

162 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
package.json
1 1 {
2 2 "name": "iview",
3   - "version": "0.9.9",
  3 + "version": "0.9.10-rc-1",
4 4 "title": "iView",
5 5 "description": "A high quality UI components Library with Vue.js",
6 6 "homepage": "http://www.iviewui.com",
... ...
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
... ... @@ -102,7 +102,7 @@
102 102 },
103 103 events: {
104 104 'on-menu-item-select' () {
105   - this.opened = false;
  105 + if (this.mode === 'horizontal') this.opened = false;
106 106 return true;
107 107 }
108 108 }
... ...
src/styles/components/menu.less
... ... @@ -193,7 +193,7 @@
193 193 }
194 194 &-dark&-vertical &-submenu &-item{
195 195 &:hover{
196   - background: @title-color;
  196 + color: #fff;
197 197 }
198 198 &-active{
199 199 border-right: none;
... ...