mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 03:52:50 +00:00
no message
This commit is contained in:
parent
2b219c7256
commit
c78ca1de5d
@ -19,7 +19,7 @@
|
|||||||
<i class="taskfont search-close" @click="onHide"></i>
|
<i class="taskfont search-close" @click="onHide"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="search-body">
|
<div class="search-body" @touchstart="onTouchstart">
|
||||||
<template v-if="listLength === 0">
|
<template v-if="listLength === 0">
|
||||||
<div v-if="loadIng > 0 || !searchKey.trim()" class="search-empty">
|
<div v-if="loadIng > 0 || !searchKey.trim()" class="search-empty">
|
||||||
<i class="taskfont"></i>
|
<i class="taskfont"></i>
|
||||||
@ -130,6 +130,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState([
|
...mapState([
|
||||||
'themeName',
|
'themeName',
|
||||||
|
'keyboardType'
|
||||||
]),
|
]),
|
||||||
|
|
||||||
list({searchKey, searchResults}) {
|
list({searchKey, searchResults}) {
|
||||||
@ -221,16 +222,31 @@ export default {
|
|||||||
this.$store.state.fileShakeId = item.id
|
this.$store.state.fileShakeId = item.id
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$store.state.fileShakeId = 0
|
this.$store.state.fileShakeId = 0
|
||||||
}, 1000)
|
}, 600)
|
||||||
this.onHide()
|
this.onHide()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onTouchstart() {
|
||||||
|
if (this.keyboardType === "show") {
|
||||||
|
$A.eeuiAppKeyboardHide();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
this.showModal = true
|
this.showModal = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.searchKey?.focus()
|
const $el = this.$refs.searchKey?.$refs?.input;
|
||||||
|
if ($el) {
|
||||||
|
$el.style.caretColor = 'transparent';
|
||||||
|
$el.focus()
|
||||||
|
const len = $el.value.length;
|
||||||
|
$el.setSelectionRange(len, len);
|
||||||
|
setTimeout(() => {
|
||||||
|
$el.style.caretColor = null
|
||||||
|
}, 300)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -129,6 +129,7 @@
|
|||||||
.search-list {
|
.search-list {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: calc(100vh - 255px);
|
max-height: calc(100vh - 255px);
|
||||||
|
overscroll-behavior: contain;
|
||||||
|
|
||||||
@media (max-height: 900px) {
|
@media (max-height: 900px) {
|
||||||
max-height: calc(100vh - 125px);
|
max-height: calc(100vh - 125px);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user