Merge remote-tracking branch 'eleme/dev' into carbon

pull/6325/head
Leopoldthecoder 2017-08-05 18:36:14 +08:00
commit 1a1395aa8c
3 changed files with 19 additions and 5 deletions

View File

@ -34,7 +34,7 @@
return {
activeIndex: '1',
activeIndex2: '1',
isCollapse: false
isCollapse: true
};
},
methods: {
@ -219,11 +219,18 @@ Vertical NavMenu could be collapsed.
</el-menu-item>
</el-menu>
<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
width: 200px;
min-height: 400px;
}
</style>
<script>
export default {
data() {
return {
isCollapse: false
isCollapse: true
};
},
methods: {

View File

@ -219,11 +219,18 @@
</el-menu-item>
</el-menu>
<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
width: 200px;
min-height: 400px;
}
</style>
<script>
export default {
data() {
return {
isCollapse: false
isCollapse: true
};
},
methods: {

View File

@ -81,7 +81,7 @@
} else {
this.activeValue = [item.value];
}
this.$emit('pick', this.activeValue);
this.$emit('pick', this.activeValue.slice());
},
handleMenuLeave() {
this.$emit('menuLeave');
@ -91,7 +91,7 @@
this.activeValue.splice(menuIndex, len, item.value);
this.activeOptions.splice(menuIndex + 1, len, item.children);
if (this.changeOnSelect) {
this.$emit('pick', this.activeValue, false);
this.$emit('pick', this.activeValue.slice(), false);
} else {
this.$emit('activeItemChange', this.activeValue);
}