Commit 1c080cc8 by liimin

1

1 parent 44fb3a88
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<LeftSideMenuLv1Item v-for="item in menuList" :key="item.id" :menuData="item"></LeftSideMenuLv1Item> <LeftSideMenuLv1Item v-for="item in menuList" :key="item.id" :menuData="item"></LeftSideMenuLv1Item>
</div> </div>
</GLScroll> </GLScroll>
<el-popover v-if="showPop && menu.isCollapse" ref="pop" :reference="reference" placement="right-start" :visible-arrow="false" width="160" :open-delay="500" trigger="hover" popper-class="el-submenu-popper-base-left-side-menu"> <el-popover v-if="showPop && menu.isCollapse" ref="pop" :reference="reference" @hide="hide()" placement="right-start" :visible-arrow="false" width="160" :open-delay="500" trigger="hover" popper-class="el-submenu-popper-base-left-side-menu">
<LeftSideMenuLv2></LeftSideMenuLv2> <LeftSideMenuLv2></LeftSideMenuLv2>
</el-popover> </el-popover>
</div> </div>
...@@ -49,10 +49,11 @@ export default { ...@@ -49,10 +49,11 @@ export default {
}, },
methods: { methods: {
mouseenter(reference, onReady) { mouseenter(reference, onReady) {
this.showPop = false // this.showPop = false
console.log('reference', reference) console.log('reference', reference)
console.log('this', this.reference) console.log('this', this.reference)
this.reference = reference this.reference = reference
console.log('this after', this.reference)
this.$nextTick(() => { this.$nextTick(() => {
// 等待显示的popover销毁后再 重新渲染新的popover // 等待显示的popover销毁后再 重新渲染新的popover
this.showPop = true this.showPop = true
...@@ -65,6 +66,9 @@ export default { ...@@ -65,6 +66,9 @@ export default {
}) })
}) })
}) })
},
hide(){
this.showPop = false
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!