粒子研究院前台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
954 B

2 years ago
<template>
<div class="menu-child">
<template v-for="item in this.menuList">
2 years ago
<el-submenu :popper-class="$route.path === '/home' ? 'home-menu-popup' : ''" :class="{active: $route.query.id == item.id}" :key="item.id" :index="String(item.id)" :id="item.id" v-if="item.children && item.children.length">
2 years ago
<template slot="title">
2 years ago
<span slot="title" :id="item.id">{{item.columnName}}</span>
2 years ago
</template>
<menuTree :menuList="item.children"></menuTree>
</el-submenu>
2 years ago
<el-menu-item :key="item.id" :id="item.id" :index="String(item.id)" v-else>
<span slot="title" :id="item.id">{{item.columnName}}</span>
2 years ago
</el-menu-item>
</template>
</div>
</template>
<script>
export default {
name: 'menuTree',
props: {
menuList: {
type: Array,
default: []
}
},
data () {
return {}
},
mounted () {},
methods: {}
}
</script>
<style lang="scss" scoped>
</style>