Commit c7c4a57e authored by 廖旭伟's avatar 廖旭伟

Merge remote-tracking branch 'origin/master'

parents eb9cb592 0c7c0c15
<template>
<div style="margin-bottom:20px">
<el-menu :default-active="activeName" class="el-menu-demo" mode="horizontal" @select="handleClick" v-if="thirdList.length>0">
<el-menu-item :index="item.path" v-for="(item,index) in thirdList" :key="index">{{item.name}}</el-menu-item>
<div style="margin-bottom:15px;">
<el-menu
:default-active="activeName"
class="el-menu-demo"
mode="horizontal"
@select="handleClick"
v-if="thirdList.length > 0"
>
<el-menu-item
:index="item.path"
v-for="(item, index) in thirdList"
:key="index"
>{{ item.name }}</el-menu-item
>
</el-menu>
</div>
</template>
<script>
export default {
props:{
thirdList:{
type:Boolean,
default:[]
props: {
thirdList: {
type: Boolean,
default: [],
},
activeName:{
type:String,
default:''
}
activeName: {
type: String,
default: "",
},
methods:{
handleClick(key, keyPath){
this.$emit('handleClick',key)
}
},
mounted(){
console.log(this.activeName,';ss')
}
}
methods: {
handleClick(key, keyPath) {
this.$emit("handleClick", key);
},
},
mounted() {
console.log(this.activeName, ";ss");
},
};
</script>
<style>
<style lang="less" scoped>
/deep/.el-menu-item {
height: 41px;
line-height: 41px;
}
</style>
......@@ -9,7 +9,7 @@
:isOpen="isOpen"
v-if="menuPage === 'left'"
/>
<div style="padding:20px">
<div style="padding:15px">
<router-view :class="{ active: !isOpen }" />
</div>
</div>
......@@ -63,8 +63,8 @@ export default {
position: relative;
background: #fff;
// var(--padding-top) 5px 5px 5px;
padding: 20px;
// margin-left: 60px;
padding: 10px;
&.active {
margin-left: var(--margin-left);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment