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