publish 0.9.10-rc-1
publish Menu component
This commit is contained in:
parent
21cc957ac5
commit
fd5cd82376
5 changed files with 8 additions and 5 deletions
BIN
assets/iview.png
BIN
assets/iview.png
Binary file not shown.
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 162 KiB |
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iview",
|
"name": "iview",
|
||||||
"version": "0.9.9",
|
"version": "0.9.10-rc-1",
|
||||||
"title": "iView",
|
"title": "iView",
|
||||||
"description": "A high quality UI components Library with Vue.js",
|
"description": "A high quality UI components Library with Vue.js",
|
||||||
"homepage": "http://www.iviewui.com",
|
"homepage": "http://www.iviewui.com",
|
||||||
|
|
|
@ -41,11 +41,14 @@
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
classes () {
|
classes () {
|
||||||
|
let theme = this.theme;
|
||||||
|
if (this.mode === 'vertical' && this.theme === 'primary') theme = 'light';
|
||||||
|
|
||||||
return [
|
return [
|
||||||
`${prefixCls}`,
|
`${prefixCls}`,
|
||||||
|
`${prefixCls}-${theme}`,
|
||||||
{
|
{
|
||||||
[`${prefixCls}-${this.mode}`]: this.mode,
|
[`${prefixCls}-${this.mode}`]: this.mode
|
||||||
[`${prefixCls}-${this.theme}`]: this.mode === 'horizontal' || (this.mode === 'vertical' && this.theme !== 'primary')
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
'on-menu-item-select' () {
|
'on-menu-item-select' () {
|
||||||
this.opened = false;
|
if (this.mode === 'horizontal') this.opened = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
}
|
}
|
||||||
&-dark&-vertical &-submenu &-item{
|
&-dark&-vertical &-submenu &-item{
|
||||||
&:hover{
|
&:hover{
|
||||||
background: @title-color;
|
color: #fff;
|
||||||
}
|
}
|
||||||
&-active{
|
&-active{
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
|
Loading…
Add table
Reference in a new issue