File tree Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-manage-system" ,
3- "version" : " 3.1.0 " ,
3+ "version" : " 3.1.1 " ,
44 "description" : " 基于Vue.js 2.x系列 + element-ui 内容管理系统解决方案" ,
55 "author" :
" lin-xin <[email protected] >" ,
66 "private" : true ,
Original file line number Diff line number Diff line change 88 <template slot="title">
99 <i :class =" item.icon" ></i ><span slot =" title" >{{ item.title }}</span >
1010 </template >
11- <el-menu-item v-for =" (subItem,i) in item.subs" :key =" i" :index =" subItem.index" >
12- {{ subItem.title }}
13- </el-menu-item >
11+ <template v-for =" subItem in item .subs " >
12+ <el-submenu v-if =" subItem.subs" :index =" subItem.index" :key =" subItem.index" >
13+ <template slot="title">{{ subItem.title }}</template >
14+ <el-menu-item v-for =" (threeItem,i) in subItem.subs" :key =" i" :index =" threeItem.index" >
15+ {{ threeItem.title }}
16+ </el-menu-item >
17+ </el-submenu >
18+ <el-menu-item v-else :index =" subItem.index" :key =" subItem.index" >
19+ {{ subItem.title }}
20+ </el-menu-item >
21+ </template >
1422 </el-submenu >
1523 </template >
1624 <template v-else >
5563 title: ' 基本表单'
5664 },
5765 {
58- index: ' editor' ,
59- title: ' 富文本编辑器'
60- },
61- {
62- index: ' markdown' ,
63- title: ' markdown编辑器'
66+ index: ' 3-2' ,
67+ title: ' 编辑器' ,
68+ subs: [
69+ {
70+ index: ' editor' ,
71+ title: ' 富文本编辑器'
72+ },
73+ {
74+ index: ' markdown' ,
75+ title: ' markdown编辑器'
76+ },
77+ ]
6478 },
6579 {
6680 index: ' upload' ,
You can’t perform that action at this time.
0 commit comments