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:
parent
de476edc38
commit
5ec9d1c4a9
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue