mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
5154348cf9
commit
9c78db8d45
@ -257,11 +257,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
|
const autoFocus = this.total === 0 || this.showModal || !this.windowTouch // 这几种情况下显示完后自动获取焦点(无展示结果、现在已经显示了、不是触摸设备)
|
||||||
this.showModal = true
|
this.showModal = true
|
||||||
if (this.total > 0) {
|
autoFocus && this.$nextTick(() => {
|
||||||
return
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
|
||||||
const $el = this.$refs.searchKey?.$refs?.input;
|
const $el = this.$refs.searchKey?.$refs?.input;
|
||||||
if ($el) {
|
if ($el) {
|
||||||
$el.style.caretColor = 'transparent';
|
$el.style.caretColor = 'transparent';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user