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 9b563f6 commit d60da76Copy full SHA for d60da76
src/components/menus/MenuItem.vue
@@ -4,7 +4,14 @@
4
:index="item.index"
5
>
6
<span slot="title">
7
- <i :class="item.icon"></i>
+ <i
8
+ v-if="item.icon"
9
+ :class="item.icon"
10
+ ></i>
11
12
+ v-else
13
+ class="el-icon-folder-opened"
14
15
{{ item.title }}
16
</span>
17
<!-- 递归使用该组件 -->
@@ -19,7 +26,14 @@
19
26
v-else
20
27
21
28
22
29
30
31
32
33
34
35
+ class="el-icon-tickets"
36
23
37
<span slot="title">{{ item.title }}</span>
24
38
</el-menu-item>
25
39
</template>
0 commit comments