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">
|
2019-09-18 22:26:53 +08:00
|
|
|
<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>
|