We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b67d2b commit f55934dCopy full SHA for f55934d
src/components/menus/MenuItem.vue
@@ -3,7 +3,7 @@
3
v-if="item.children && item.children.length"
4
:index="item.index"
5
>
6
- <span slot="title">
+ <template slot="title">
7
<i
8
v-if="item.icon"
9
:class="item.icon"
@@ -12,8 +12,10 @@
12
v-else
13
class="el-icon-folder-opened"
14
></i>
15
- {{ item.title }}
16
- </span>
+ <span slot="title">
+ {{ item.title }}
17
+ </span>
18
+ </template>
19
<!-- 递归使用该组件 -->
20
<template v-for="(m, i) in item.children">
21
<MenuItem
src/layout/Layout.vue
@@ -44,7 +44,6 @@ export default {
44
bottom: 0;
45
.view {
46
width: auto;
47
- background: #f0f0f0;
48
height: 100%;
49
padding: 2rem;
50
position: absolute;
0 commit comments