open() {
this.showPopup = true
this.$nextTick(() => {
new Promise(resolve => {
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.showTrans = true
resolve();
}, 50);
}).then(res => {
this.$emit('change', {
show: true
})
})
})
},
close(type) {
this.showTrans = false
this.$nextTick(() => {
this.$emit('change', {
show: false
})
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.showPopup = false
}, 300)
})
},