Introducing new features. 支持 enter搜索

This commit is contained in:
lbw 2023-02-24 14:24:59 +08:00
parent 0654cae92f
commit 2a6cd2f194

View File

@ -2,7 +2,7 @@
<div class="layout-padding"> <div class="layout-padding">
<el-card class="layout-padding-auto"> <el-card class="layout-padding-auto">
<el-row class="mb8" v-show="showSearch"> <el-row class="mb8" v-show="showSearch">
<el-form :inline="true" :model="state.queryForm" ref="queryRef"> <el-form :inline="true" :model="state.queryForm" ref="queryRef" @keyup.enter="getDataList">
<el-form-item :label="$t('template.id')" prop="id"> <el-form-item :label="$t('template.id')" prop="id">
<el-input :placeholder="t('template.inputIdTip')" style="max-width: 180px" <el-input :placeholder="t('template.inputIdTip')" style="max-width: 180px"
v-model="state.queryForm.id" /> v-model="state.queryForm.id" />