添加对tips实例的销毁处理
parent
e61072ddc9
commit
9953c61d62
|
@ -27,9 +27,13 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
const el = this.$el
|
||||||
|
el.parentNode.removeChild(el)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
afterLeave(el, done) {
|
afterLeave(el, done) {
|
||||||
el.parentNode.removeChild(el)
|
this.$destroy()
|
||||||
},
|
},
|
||||||
handleGetOffsetXY(left, top) {
|
handleGetOffsetXY(left, top) {
|
||||||
const tipsWidth = this.$refs.dom_tips.clientWidth
|
const tipsWidth = this.$refs.dom_tips.clientWidth
|
||||||
|
|
Loading…
Reference in New Issue