添加对tips实例的销毁处理

pull/392/head
lyswhut 2021-01-03 14:07:50 +08:00
parent e61072ddc9
commit 9953c61d62
1 changed files with 5 additions and 1 deletions

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