elenent Ui - view Ui input控件监听Enter键;
Element Ui
<el-input
@focus="focusName()"
@keyup.enter.native="CheckInfo()"
@blur="blurName()"
v-model="search" class="SearchButtong">
</el-input>
注: @keyup.enter.native 是关键;
View Ui
<Input
class="active"
v-model="searchText"
@keyup.enter.native="CheckInfo()">
</Input>
注: @keyup.enter.native 是关键;
注: 也可以根据此特点给不同的input输入框监听相应的Enter键