未验证 提交 5ec9d1c4 编写于 作者: C caishunfeng 提交者: GitHub

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

Co-authored-by: 大数据猿人's avatarcalvin <jianghuachinacom@163.com>
上级 de476edc
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册