正常输入框 // enter键为"换行"
<input type="search" class="mui-input-clear" placeholder="">
修改键盘enter键为搜索
<form action="#" onsubmit="return false;">
<input type="search" class="mui-input-clear" placeholder="">
</form>
或者
<form @submit.prevent="formSubmit" action="javascript:return true">
<input type="search" class="mui-input-clear" placeholder="">
</form>
网友评论