VUE el-input 按键绑定Enter方法
<el-form class="form-search" :inline="true" size="mini" :model="searchForm" ref="searchForm"><el-form-item label="用户名称"><el-input class="formItem"type="text" @keyup.enter.native="search
·
<el-form class="form-search" :inline="true" size="mini" :model="searchForm" ref="searchForm">
<el-form-item label="用户名称">
<el-input class="formItem" type="text" @keyup.enter.native="searchEntInfo" v-model="searchForm.UserName" placeholder="请输入用户名称"></el-input>
</el-form-item>
<el-form-item class="form-deal" >
<el-button type="warning" size="mini" @click="searchEntInfo()">查 询</el-button>
<el-button type="danger" size="mini" @click="resetFormAndLoad('searchForm')">重置</el-button>
</el-form-item>
</el-form>
@keyup.enter.native="searchEntInfo" 绑定@click="searchEntInfo()查询方法
更多推荐
已为社区贡献6条内容
所有评论(0)