| | |
| | | :key="item[labelKey]" |
| | | :index="item[pathKey]"> |
| | | <template slot="title"> |
| | | <i :class="item[iconKey]" style="margin-right: 10px"></i> |
| | | <div style="display: flex"> |
| | | <icon-show :name="item[iconKey]" class="iconShowSpan"></icon-show> |
| | | <span slot="title" |
| | | :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span> |
| | | </div> |
| | | </template> |
| | | <template v-for="(child,cindex) in item[childrenKey]"> |
| | | <el-menu-item v-if="validatenull(child[childrenKey])" |
| | |
| | | :class="{'is-active':vaildActive(child)}" |
| | | :index="child[pathKey],cindex" |
| | | @click="open(child)"> |
| | | <i :class="child[iconKey]" style="margin-right: 10px"></i> |
| | | <span slot="title">{{ generateTitle(child) }}</span> |
| | | <div style="display: flex"> |
| | | <icon-show :name="child[iconKey]" class="iconShowSpan"></icon-show> |
| | | <span slot="title">{{ generateTitle(child) }}</span> |
| | | </div> |
| | | </el-menu-item> |
| | | <sidebar-item v-else |
| | | :key="cindex" |
| | |
| | | outline: 0; |
| | | background-color: #060708; |
| | | } |
| | | |
| | | .iconShowSpan{ |
| | | display: inline-block; |
| | | margin-top: -2px; |
| | | width: 16px !important; |
| | | height: 16px !important; |
| | | margin-right: 10px; |
| | | color: #eeeeea; |
| | | } |
| | | </style> |
| | | |
| | | |