Commit fed4b5b2 by liimin

1

1 parent 8665c529
...@@ -8,13 +8,6 @@ ...@@ -8,13 +8,6 @@
<el-popover <el-popover
v-if="showPop && menu.isCollapse" v-if="showPop && menu.isCollapse"
ref="pop" ref="pop"
:append-to-body="true"
:popper-options="{
boundariesElement: 'body',
gpuAcceleration: true,
positionFixed: true,
preventOverflow: true
}"
:reference="reference" :reference="reference"
@hide="hide()" @hide="hide()"
placement="right-start" placement="right-start"
...@@ -25,7 +18,7 @@ ...@@ -25,7 +18,7 @@
popper-class="el-submenu-popper-base-left-side-menu" popper-class="el-submenu-popper-base-left-side-menu"
> >
<LeftSideMenuLv2></LeftSideMenuLv2> <LeftSideMenuLv2></LeftSideMenuLv2>
</el-popover> </el-popover>s
</div> </div>
</template> </template>
...@@ -65,6 +58,7 @@ export default { ...@@ -65,6 +58,7 @@ export default {
beforeDestroy() { beforeDestroy() {
this.bus.$off('mouseenter', this.mouseenter) this.bus.$off('mouseenter', this.mouseenter)
}, },
//https://segmentfault.com/a/1190000042463083?utm_source=sf-similar-article
methods: { methods: {
mouseenter(reference, onReady) { mouseenter(reference, onReady) {
this.showPop = false this.showPop = false
...@@ -78,7 +72,7 @@ export default { ...@@ -78,7 +72,7 @@ export default {
this.$refs.pop.doShow() this.$refs.pop.doShow()
this.$nextTick(() => { this.$nextTick(() => {
onReady() onReady()
this.$nextTick(() => this.$refs.pop.updatePopper()) // this.$nextTick(() => this.$refs.pop.updatePopper())
}) })
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!