mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
perf: 任务描述再次点击隐藏菜单
This commit is contained in:
parent
c17eca28fa
commit
d54c86cec9
@ -103,6 +103,7 @@ export default {
|
||||
|
||||
operateStyles: {},
|
||||
operateVisible: false,
|
||||
operateHiddenTime: 0,
|
||||
operateMenu: {
|
||||
target: null,
|
||||
checked: null,
|
||||
@ -142,7 +143,12 @@ export default {
|
||||
},
|
||||
content(val) {
|
||||
this.$emit('input', val);
|
||||
}
|
||||
},
|
||||
operateVisible(val) {
|
||||
if (!val) {
|
||||
this.operateHiddenTime = Date.now();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
@ -189,6 +195,9 @@ export default {
|
||||
if (!this.windowTouch) {
|
||||
return
|
||||
}
|
||||
if (Date.now() - this.operateHiddenTime < 300) {
|
||||
return;
|
||||
}
|
||||
event.stopPropagation()
|
||||
this.operateVisible = false;
|
||||
this.operateMenu.target = event.target;
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit f4e6abaa8cd933034a9e2af7ca18b45dff13467c
|
||||
Subproject commit 2f2353e8c1f935e41d5358794110ef45df56dfec
|
||||
Loading…
x
Reference in New Issue
Block a user