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

25 lines
474 B
Vue

<template>
<el-submenu ref="subMenu" :index="routerInfo.name">
<template slot="title">
<i :class="'el-icon-'+routerInfo.meta.icon"></i>
<span slot="title">{{routerInfo.meta.title}}</span>
</template>
<slot></slot>
</el-submenu>
</template>
<script>
export default {
name: 'AsyncSubmenu',
props: {
routerInfo: {
default: function() {
return null
},
type: Object
}
}
}
</script>
<style lang="scss">
</style>