direction.onEnd = function () { console.log(111) } 在element表格中使用 <!DOCTYPE html> vue-direction-key <!-- 引入组件库 --> <!-- 引入vue-direction-key -->
Contribute to hxkuc/vue-direction-key development by creating an account on GitHub.
在vue组件钩子中使用this.$getDirection()获取direction对象,该对象有以下方法 direction.on(keys, fun) 参数: keys: (string) 原生的事件参数如: 'keyup', 'keydown'等 fun: 自定义函数,有两个参数function(e, val),e为event对象,val为触发的input绑定的自定义指令的值,可以通过此选项来传值进行特殊判断,...