Commit 60d06ab9 by liimin

1

1 parent 4cfbdc2d
......@@ -10,11 +10,10 @@
ref="pop"
:append-to-body="true"
:popper-options="{
boundariesElement: 'viewport',
boundariesElement: 'body',
gpuAcceleration: true,
positionFixed: true,
preventOverflow: true,
removeOnDestroy: true
}"
:reference="reference"
@hide="hide()"
......@@ -69,16 +68,18 @@ export default {
methods: {
mouseenter(reference, onReady) {
this.showPop = false
this.reference = reference
this.$nextTick(() => {
// 等待显示的popover销毁后再 重新渲染新的popover
this.showPop = true
this.reference = reference
this.$nextTick(() => {
// 此时才能获取refs引用
this.$refs.pop.doShow()
// 等待显示的popover销毁后再 重新渲染新的popover
this.showPop = true
this.$nextTick(() => {
onReady()
this.$nextTick(() => this.$refs.pop.updatePopper())
// 此时才能获取refs引用
this.$refs.pop.doShow()
this.$nextTick(() => {
onReady()
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!