Commit 91758613 by liimin

2

1 parent 60d06ab9
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
boundariesElement: 'body', boundariesElement: 'body',
gpuAcceleration: true, gpuAcceleration: true,
positionFixed: true, positionFixed: true,
preventOverflow: true, preventOverflow: true
}" }"
:reference="reference" :reference="reference"
@hide="hide()" @hide="hide()"
...@@ -71,14 +71,16 @@ export default { ...@@ -71,14 +71,16 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.reference = reference this.reference = reference
this.$nextTick(() => { this.$nextTick(() => {
// 等待显示的popover销毁后再 重新渲染新的popover
this.showPop = true
this.$nextTick(() => { this.$nextTick(() => {
// 此时才能获取refs引用 // 等待显示的popover销毁后再 重新渲染新的popover
this.$refs.pop.doShow() this.showPop = true
this.$nextTick(() => { this.$nextTick(() => {
onReady() // 此时才能获取refs引用
this.$nextTick(() => this.$refs.pop.updatePopper()) 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!