mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-18 14:13:58 +00:00
perf: 优化触发回复页面滚动
This commit is contained in:
parent
21ad0632b4
commit
c278806548
@ -1073,8 +1073,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onReply() {
|
onReply() {
|
||||||
this.replyId = this.operateItem.id;
|
const {tail} = this.scrollInfo()
|
||||||
|
this.replyId = this.operateItem.id
|
||||||
this.inputFocus()
|
this.inputFocus()
|
||||||
|
if (tail <= 10) {
|
||||||
|
requestAnimationFrame(this.onToBottom)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onCancelReply() {
|
onCancelReply() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user