gin-vue-admin/QMPlusVuePage/src/view/layout/aside/asideComponent/asyncSubmenu.vue

25 lines
474 B
Vue
Raw Normal View History

2019-09-15 20:24:56 +08:00
<template>
2019-09-15 21:33:53 +08:00
<el-submenu ref="subMenu" :index="routerInfo.name">
2019-09-15 20:24:56 +08:00
<template slot="title">
<i :class="'el-icon-'+routerInfo.meta.icon"></i>
2019-09-15 20:24:56 +08:00
<span slot="title">{{routerInfo.meta.title}}</span>
</template>
<slot></slot>
</el-submenu>
</template>
<script>
export default {
2019-09-15 21:33:53 +08:00
name: 'AsyncSubmenu',
2019-09-15 20:24:56 +08:00
props: {
routerInfo: {
default: function() {
return null
},
type: Object
}
}
}
</script>
<style lang="scss">
</style>