update Menu to support SSR
This commit is contained in:
parent
9212149ed6
commit
c708835c0c
2 changed files with 33 additions and 24 deletions
|
@ -1,32 +1,40 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Menu :theme="theme3" active-name="1">
|
<Menu mode="horizontal" :theme="theme1" active-name="1">
|
||||||
<Menu-group title="内容管理">
|
<Menu-item name="1">
|
||||||
<Menu-item name="1">
|
<Icon type="ios-paper"></Icon>
|
||||||
<Icon type="document-text"></Icon>
|
内容管理
|
||||||
文章管理
|
</Menu-item>
|
||||||
</Menu-item>
|
<Menu-item name="2">
|
||||||
<Menu-item name="2">
|
<Icon type="ios-people"></Icon>
|
||||||
<Icon type="chatbubbles"></Icon>
|
用户管理
|
||||||
评论管理
|
</Menu-item>
|
||||||
</Menu-item>
|
<Submenu name="3">
|
||||||
</Menu-group>
|
<template slot="title">
|
||||||
<Menu-group title="统计分析">
|
<Icon type="stats-bars"></Icon>
|
||||||
<Menu-item name="3">
|
统计分析
|
||||||
<Icon type="heart"></Icon>
|
</template>
|
||||||
用户留存
|
<Menu-group title="使用">
|
||||||
</Menu-item>
|
<Menu-item name="3-1">新增和启动</Menu-item>
|
||||||
<Menu-item name="4">
|
<Menu-item name="3-2">活跃分析</Menu-item>
|
||||||
<Icon type="heart-broken"></Icon>
|
<Menu-item name="3-3">时段分析</Menu-item>
|
||||||
流失用户
|
</Menu-group>
|
||||||
</Menu-item>
|
<Menu-group title="留存">
|
||||||
</Menu-group>
|
<Menu-item name="3-4">用户留存</Menu-item>
|
||||||
|
<Menu-item name="3-5">流失用户</Menu-item>
|
||||||
|
</Menu-group>
|
||||||
|
</Submenu>
|
||||||
|
<Menu-item name="4">
|
||||||
|
<Icon type="settings"></Icon>
|
||||||
|
综合设置
|
||||||
|
</Menu-item>
|
||||||
</Menu>
|
</Menu>
|
||||||
<br>
|
<br>
|
||||||
<p>切换主题</p>
|
<p>切换主题</p>
|
||||||
<Radio-group v-model="theme3">
|
<Radio-group v-model="theme1">
|
||||||
<Radio label="light"></Radio>
|
<Radio label="light"></Radio>
|
||||||
<Radio label="dark"></Radio>
|
<Radio label="dark"></Radio>
|
||||||
|
<Radio label="primary"></Radio>
|
||||||
</Radio-group>
|
</Radio-group>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -34,7 +42,7 @@
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
theme3: 'light'
|
theme1: 'light'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
v-show="opened"
|
v-show="opened"
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
ref="drop"
|
ref="drop"
|
||||||
:style="dropStyle"><slot></slot></Drop>
|
:style="dropStyle"><ul><slot></slot></ul>
|
||||||
|
</Drop>
|
||||||
</transition>
|
</transition>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue