mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
no message
This commit is contained in:
parent
a8b798b00c
commit
add23934ca
@ -918,6 +918,13 @@ export default {
|
||||
window.scrollTo(0, 0)
|
||||
}
|
||||
},
|
||||
|
||||
keyboardShow(val) {
|
||||
if (!val && this.isFocus) {
|
||||
this.isFocus = false
|
||||
this.quill?.blur()
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
|
||||
@ -4395,9 +4395,6 @@ export default {
|
||||
}
|
||||
this.keepIntoTimer && clearTimeout(this.keepIntoTimer)
|
||||
this.keepIntoTimer = setTimeout(_ => {
|
||||
if (!this.keyboardShow) {
|
||||
return true; // 键盘未弹出
|
||||
}
|
||||
if (!this.$refs.input?.isFocus) {
|
||||
return true; // 输入框未聚焦
|
||||
}
|
||||
|
||||
@ -746,7 +746,7 @@ export default {
|
||||
mounted() {
|
||||
this.keepInterval = setInterval(() => {
|
||||
this.keepUnix = $A.dayjs().unix();
|
||||
this.keepIntoInput();
|
||||
this.keepIntoInput(500);
|
||||
}, 1000);
|
||||
//
|
||||
emitter.on('receiveTask', this.onReceiveShow);
|
||||
@ -1131,6 +1131,10 @@ export default {
|
||||
}
|
||||
$A.setStorage('task.dialogWidth', w);
|
||||
},
|
||||
|
||||
taskContent(v) {
|
||||
v && this.keepIntoInput(10)
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
@ -2143,15 +2147,12 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
keepIntoInput() {
|
||||
keepIntoInput(delay) {
|
||||
if (!this.$isEEUiApp) {
|
||||
return
|
||||
}
|
||||
this.keepIntoTimer && clearTimeout(this.keepIntoTimer)
|
||||
this.keepIntoTimer = setTimeout(_ => {
|
||||
if (!this.keyboardShow) {
|
||||
return true; // 键盘未弹出
|
||||
}
|
||||
if (!this.$refs.chatInput?.isFocus) {
|
||||
return true; // 输入框未聚焦
|
||||
}
|
||||
@ -2159,7 +2160,7 @@ export default {
|
||||
block: 'end',
|
||||
behavior: 'smooth'
|
||||
})
|
||||
}, 500)
|
||||
}, delay)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@
|
||||
font-size: 40px;
|
||||
color: #19be6b;
|
||||
opacity: .2;
|
||||
z-index: 1;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.dialog-title {
|
||||
|
||||
@ -922,17 +922,19 @@
|
||||
|
||||
&.completed {
|
||||
.task-info {
|
||||
&:before {
|
||||
content: "\f373";
|
||||
font-family: Ionicons, serif;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 13%;
|
||||
font-size: 72px;
|
||||
color: #19be6b;
|
||||
opacity: .2;
|
||||
z-index: 1;
|
||||
.head {
|
||||
&:after {
|
||||
content: "\f373";
|
||||
font-family: Ionicons, serif;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 13%;
|
||||
font-size: 72px;
|
||||
color: #19be6b;
|
||||
opacity: .2;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -401,7 +401,7 @@
|
||||
font-size: 28px;
|
||||
color: #19be6b;
|
||||
opacity: .2;
|
||||
z-index: 1;
|
||||
z-index: 2;
|
||||
}
|
||||
.dialog-box {
|
||||
.dialog-text {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user