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()
const len = $el.value.length;
$el.setSelectionRange(len, len);
setTimeout(() => {
const len = $el.value.length;
$el.setSelectionRange(len, len);
$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/>
<div v-if="searchLoad === 0 && searchResult.length > 0" class="search-total">{{searchLocation}}/{{searchResult.length}}</div>
<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,20 +9,24 @@
<Loading v-if="searchLoading"/>
<Icon v-else type="ios-search" />
</div>
<Input
v-if="tabActive==='dialog'"
v-model="dialogSearchKey"
ref="searchInput"
:placeholder="$L(loadDialogs > 0 ? '更新中...' : '搜索')"
@on-keydown="onKeydown"
clearable/>
<Input
v-else
v-model="contactsKey"
ref="contactInput"
:placeholder="$L('搜索')"
@on-keydown="onKeydown"
clearable/>
<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 ? '更新中...' : '搜索')"
@on-keydown="onKeydown"
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,13 +68,17 @@
}
}
.ivu-input {
border-color: transparent;
background-color: transparent;
.search-form {
flex: 1;
&:hover,
&:focus {
box-shadow: none;
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
}
}

View File

@ -185,12 +185,17 @@
}
}
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
}
}

View File

@ -418,18 +418,22 @@
}
}
.ivu-input {
border-color: transparent;
background-color: transparent;
.search-form {
flex: 1;
&:hover,
&:focus {
box-shadow: none;
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
}
.search-total {
padding-right: 12px;
.search-total {
padding-right: 12px;
}
}
}
.search-cancel {

View File

@ -43,13 +43,17 @@
}
}
.ivu-input {
border-color: transparent;
background-color: transparent;
.search-form {
flex: 1;
&:hover,
&:focus {
box-shadow: none;
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
}
}

View File

@ -240,12 +240,15 @@
margin: 0;
}
}
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
}
}

View File

@ -56,12 +56,15 @@
margin: 0;
}
}
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
.search-form {
flex: 1;
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
}
}