no message

This commit is contained in:
kuaifan 2025-03-04 06:35:32 +08:00
parent f096d71cc1
commit e5c8748b75
12 changed files with 98 additions and 61 deletions

View File

@ -14,7 +14,9 @@
<Loading v-if="loadIng > 0"/>
<Icon v-else type="ios-search" />
</div>
<Input ref="searchKey" v-model="searchKey" :placeholder="$L('请输入关键字')" type="search" @on-enter="onEnter"/>
<Form class="search-form" action="javascript:void(0)" @submit.native.prevent="$A.eeuiAppKeyboardHide">
<Input type="search" ref="searchKey" v-model="searchKey" :placeholder="$L('请输入关键字')"/>
</Form>
</div>
<i class="taskfont search-close" @click="onHide">&#xe6e5;</i>
</div>
@ -249,9 +251,9 @@ export default {
if ($el) {
$el.style.caretColor = 'transparent';
$el.focus()
setTimeout(() => {
const len = $el.value.length;
$el.setSelectionRange(len, len);
setTimeout(() => {
$el.style.caretColor = null
}, 300)
}

View File

@ -59,7 +59,9 @@
<Loading v-if="loadIng > 0"/>
<Icon v-else type="ios-search" />
</div>
<Input v-model="searchKey" :placeholder="localPlaceholder" clearable/>
<Form class="search-form" action="javascript:void(0)" @submit.native.prevent="$A.eeuiAppKeyboardHide">
<Input type="search" v-model="searchKey" :placeholder="localPlaceholder" clearable/>
</Form>
</div>
</div>

View File

@ -177,7 +177,9 @@
<Loading v-if="projectKeyLoading > 0"/>
<Icon v-else type="ios-search" />
</div>
<Input v-model="projectKeyValue" :placeholder="$L(`共${projectTotal || cacheProjects.length}个项目,搜索...`)" clearable/>
<Form class="search-form" action="javascript:void(0)" @submit.native.prevent="$A.eeuiAppKeyboardHide">
<Input type="search" v-model="projectKeyValue" :placeholder="$L(`共${projectTotal || cacheProjects.length}个项目,搜索...`)" clearable/>
</Form>
</div>
<ButtonGroup class="manage-box-new-group">
<Button class="manage-box-new" type="primary" icon="md-add" @click="onAddShow">{{$L('新建项目')}}</Button>

View File

@ -143,8 +143,10 @@
<Loading v-if="searchLoad > 0"/>
<Icon v-else type="ios-search" />
</div>
<Input ref="searchInput" v-model="searchKey" :placeholder="$L('搜索消息')" @on-keyup="onSearchKeyup" clearable/>
<Form class="search-form" action="javascript:void(0)" @submit.native.prevent="$A.eeuiAppKeyboardHide">
<Input type="search" ref="searchInput" v-model="searchKey" :placeholder="$L('搜索消息')" @on-keyup="onSearchKeyup" clearable/>
<div v-if="searchLoad === 0 && searchResult.length > 0" class="search-total">{{searchLocation}}/{{searchResult.length}}</div>
</Form>
</div>
<div class="search-cancel" @click="onSearchKeyup(null)">{{$L('取消')}}</div>
</div>

View File

@ -7,7 +7,9 @@
<Loading v-if="loadProjects > 0"/>
<Icon v-else type="ios-search" />
</div>
<Input v-model="projectKeyValue" :placeholder="$L(loadProjects > 0 ? '更新中...' : '搜索')" clearable/>
<Form class="search-form" action="javascript:void(0)" @submit.native.prevent="$A.eeuiAppKeyboardHide">
<Input type="search" v-model="projectKeyValue" :placeholder="$L(loadProjects > 0 ? '更新中...' : '搜索')" clearable/>
</Form>
</div>
</div>
<ul @touchstart="onTouchStart" @scroll="onScroll">

View File

@ -9,8 +9,10 @@
<Loading v-if="searchLoading"/>
<Icon v-else type="ios-search" />
</div>
<Form class="search-form" action="javascript:void(0)" @submit.native.prevent="$A.eeuiAppKeyboardHide">
<Input
v-if="tabActive==='dialog'"
type="search"
v-model="dialogSearchKey"
ref="searchInput"
:placeholder="$L(loadDialogs > 0 ? '更新中...' : '搜索')"
@ -18,11 +20,13 @@
clearable/>
<Input
v-else
type="search"
v-model="contactsKey"
ref="contactInput"
:placeholder="$L('搜索')"
@on-keydown="onKeydown"
clearable/>
</Form>
</div>
</div>
<div v-if="tabActive==='dialog' && !dialogSearchKey" class="messenger-nav">

View File

@ -68,6 +68,9 @@
}
}
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
@ -78,6 +81,7 @@
}
}
}
}
.search-close {
font-size: 16px;

View File

@ -185,9 +185,13 @@
}
}
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
@ -195,6 +199,7 @@
}
}
}
}
.user-modal-switch {
display: flex;

View File

@ -418,6 +418,9 @@
}
}
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
@ -432,6 +435,7 @@
padding-right: 12px;
}
}
}
.search-cancel {
cursor: pointer;
padding: 0 18px;

View File

@ -43,6 +43,9 @@
}
}
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
@ -54,6 +57,7 @@
}
}
}
}
> ul {
flex: 1;

View File

@ -240,6 +240,8 @@
margin: 0;
}
}
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
@ -249,6 +251,7 @@
}
}
}
}
.manage-box-new-group {
width: 80%;
margin-top: 16px;

View File

@ -56,6 +56,8 @@
margin: 0;
}
}
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
@ -66,6 +68,7 @@
}
}
}
}
.messenger-nav {
display: flex;
align-items: center;