iview/test/routers/menu.vue

49 lines
1.4 KiB
Vue
Raw Normal View History

2016-12-07 20:45:21 +08:00
<template>
2016-12-08 22:11:57 +08:00
<Menu mode="horizontal" :theme="theme1" active-key="1">
<i-button>test</i-button>
<Menu-item key="1">
<Icon type="ios-paper"></Icon>
内容管理
</Menu-item>
<Menu-item key="2">
<Icon type="ios-people"></Icon>
用户管理
</Menu-item>
<Submenu key="3">
<template slot="title">
<Icon type="stats-bars"></Icon>
统计分析
</template>
<Menu-group title="使用">
<Menu-item key="3-1">新增和启动</Menu-item>
<Menu-item key="3-2">活跃分析</Menu-item>
<Menu-item key="3-3">时段分析</Menu-item>
</Menu-group>
<Menu-group title="留存">
<Menu-item key="3-4">用户留存</Menu-item>
<Menu-item key="3-5">流失用户</Menu-item>
</Menu-group>
</Submenu>
<Menu-item key="4">
<Icon type="settings"></Icon>
综合设置
</Menu-item>
</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>