mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +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>
|
||||
</div>
|
||||
|
||||
<div class="search-body">
|
||||
<div class="search-body" @touchstart="onTouchstart">
|
||||
<template v-if="listLength === 0">
|
||||
<div v-if="loadIng > 0 || !searchKey.trim()" class="search-empty">
|
||||
<i class="taskfont"></i>
|
||||
@ -130,6 +130,7 @@ export default {
|
||||
computed: {
|
||||
...mapState([
|
||||
'themeName',
|
||||
'keyboardType'
|
||||
]),
|
||||
|
||||
list({searchKey, searchResults}) {
|
||||
@ -221,16 +222,31 @@ export default {
|
||||
this.$store.state.fileShakeId = item.id
|
||||
setTimeout(() => {
|
||||
this.$store.state.fileShakeId = 0
|
||||
}, 1000)
|
||||
}, 600)
|
||||
this.onHide()
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
onTouchstart() {
|
||||
if (this.keyboardType === "show") {
|
||||
$A.eeuiAppKeyboardHide();
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.showModal = true
|
||||
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 {
|
||||
overflow: auto;
|
||||
max-height: calc(100vh - 255px);
|
||||
overscroll-behavior: contain;
|
||||
|
||||
@media (max-height: 900px) {
|
||||
max-height: calc(100vh - 125px);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user