iview/test/routers/menu.vue

36 lines
1.1 KiB
Vue
Raw Normal View History

2016-12-07 20:45:21 +08:00
<template>
2016-12-16 16:27:07 +08:00
<Menu mode="horizontal" theme="primary" active-key="1">
<Submenu key="1">
2016-12-08 22:11:57 +08:00
<template slot="title">
2016-12-16 16:27:07 +08:00
<Icon type="soup-can-outline"></Icon>
数据管理
2016-12-08 22:11:57 +08:00
</template>
<Menu-group title="使用">
2016-12-16 16:27:07 +08:00
<Menu-item key="1-1">新增和启动新增和启动</Menu-item>
<Menu-item key="1-2">活跃分析</Menu-item>
<Menu-item key="1-3">时段分析</Menu-item>
2016-12-08 22:11:57 +08:00
</Menu-group>
<Menu-group title="留存">
2016-12-16 16:27:07 +08:00
<Menu-item key="1-4">用户留存</Menu-item>
<Menu-item key="1-5">流失用户</Menu-item>
2016-12-08 22:11:57 +08:00
</Menu-group>
</Submenu>
</Menu>
<br>
<p>切换主题</p>
2016-12-08 22:11:57 +08:00
<Radio-group :model.sync="theme1">
<Radio value="light"></Radio>
<Radio value="dark"></Radio>
2016-12-08 22:11:57 +08:00
<Radio value="primary"></Radio>
</Radio-group>
2016-12-07 20:45:21 +08:00
</template>
<script>
export default {
data () {
return {
2016-12-08 22:11:57 +08:00
theme1: 'light'
2016-12-07 20:45:21 +08:00
}
}
}
</script>