|
@@ -40,17 +40,19 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
- this.show = false
|
|
|
|
this.menuStyle = {
|
|
this.menuStyle = {
|
|
left: `${this.menuData.event.clientX + 10}px`,
|
|
left: `${this.menuData.event.clientX + 10}px`,
|
|
top: `${this.menuData.event.clientY + 15}px`
|
|
top: `${this.menuData.event.clientY + 15}px`
|
|
}
|
|
}
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.show = false
|
|
|
|
+ }, 200)
|
|
},
|
|
},
|
|
closeMenu() {
|
|
closeMenu() {
|
|
clearTimeout(this.timeout)
|
|
clearTimeout(this.timeout)
|
|
this.timeout = setTimeout(() => {
|
|
this.timeout = setTimeout(() => {
|
|
- // this.show = true
|
|
|
|
- }, 0)
|
|
|
|
|
|
+ this.show = true
|
|
|
|
+ }, 100)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|