Vue el-input 使用@keyup绑定Enter键、上下左右键、删除键
<el-inputv-model="order"@keyup.enter.native="keyUpOperate('enter')"@keyup.up.native="keyUpOperate('up')"@keyup.down.native="keyUpOperate('down')"@keyup.left.native="keyUpOperate('left')"@keyup.right.native="keyUpOperate('right')"@keyup.delete.native="keyUpOperate('delete')"/>
keyUpOperate(type) {console.log(type)},
控制台随着按键点击输入: