<template>
<!-- 需求:keyup事件一般用在input中,在input框中输入内容,用户点击键盘的enter,执行搜索 -->
<div class="demo">
<el-input placeholder="input框注册enter事件" v-model="demoEnter" @keyup.enter.native="openEnter"></el-input>
</div>
</template>
<script><template>
<!-- 需求:keyup事件一般用在input中,在in