cherry-pick [Fix-7457] Support to search when pressing enter button in the search box (#8372)

Co-authored-by: calvin <jianghuachinacom@163.com>
This commit is contained in:
caishunfeng 2022-02-15 10:00:11 +08:00 committed by GitHub
parent de476edc38
commit 5ec9d1c4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -27,12 +27,15 @@
<el-button size="mini" @click="_ckQuery" icon="el-icon-search"></el-button>
</div>
<div class="list">
<el-input v-model="searchVal"
@keyup.enter="_ckQuery"
size="mini"
:placeholder="$t('Please enter keyword')"
type="text"
style="width:180px;">
<el-input
v-model="searchVal"
@keyup.enter.native="_ckQuery"
size="mini"
:placeholder="$t('Please enter keyword')"
type="text"
style="width: 180px"
clearable
>
</el-input>
</div>
</template>