在 element-ui 中,由于组件是封装好的,原生的绑定事件写法无法生效 <el-input @keyup.enter="XXX"></el-input> 需要搭配 .native 来进行绑定 <el-input @keyup.enter.native="XXX"></el-input>