vue input监听回车事件
普通监听:
<input v-model="searchData" @keyup.enter="handerSearch"/>
组件监听:
<el-input v-model="searchData" @keyup.enter.native="handerSearch"/>
<input v-model="searchData" @keyup.enter="handerSearch"/>
组件监听:
<el-input v-model="searchData" @keyup.enter.native="handerSearch"/>