Commit 6ea47fe4 by liimin

2

1 parent 1c080cc8
......@@ -49,26 +49,25 @@ export default {
},
methods: {
mouseenter(reference, onReady) {
// this.showPop = false
console.log('reference', reference)
console.log('this', this.reference)
this.reference = reference
console.log('this after', this.reference)
this.showPop = false
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())
})
})
})
})
},
hide(){
this.showPop = false
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!