添加对tips实例的销毁处理

This commit is contained in:
lyswhut
2021-01-03 14:07:50 +08:00
parent e61072ddc9
commit 9953c61d62
+5 -1
View File
@@ -27,9 +27,13 @@ export default {
})
},
},
beforeDestroy() {
const el = this.$el
el.parentNode.removeChild(el)
},
methods: {
afterLeave(el, done) {
el.parentNode.removeChild(el)
this.$destroy()
},
handleGetOffsetXY(left, top) {
const tipsWidth = this.$refs.dom_tips.clientWidth