update #1102
This commit is contained in:
parent
55dbf62d68
commit
a8a03995fa
2 changed files with 43 additions and 44 deletions
|
@ -1,8 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<Row>
|
||||
<i-col span="8">
|
||||
<Menu :theme="theme2">
|
||||
<Menu :theme="theme2" accordion @on-open-change="handleChange">
|
||||
<Submenu name="1">
|
||||
<template slot="title">
|
||||
<Icon type="ios-paper"></Icon>
|
||||
|
@ -36,14 +34,6 @@
|
|||
</Menu-group>
|
||||
</Submenu>
|
||||
</Menu>
|
||||
</i-col>
|
||||
</Row>
|
||||
<br>
|
||||
<p>切换主题</p>
|
||||
<Radio-group v-model="theme2">
|
||||
<Radio label="light"></Radio>
|
||||
<Radio label="dark"></Radio>
|
||||
</Radio-group>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -52,6 +42,11 @@
|
|||
return {
|
||||
theme2: 'light'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleChange (val) {
|
||||
console.log(val);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -81,6 +81,10 @@
|
|||
this.openNames.splice(index, 1);
|
||||
} else {
|
||||
this.openNames.push(name);
|
||||
if (this.accordion) {
|
||||
this.openNames.splice(0, this.openNames.length);
|
||||
this.openNames.push(name);
|
||||
}
|
||||
}
|
||||
},
|
||||
updateOpened () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue