1.0.0 • Published 1 year ago

mmdr v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

自定义指令封装

安装 npm install mmdr

app.directive('debounce',debounce)
app.directive('longPress',longPress)

使用

传入时间、方法和其他参数,不传默认为一秒
v-longPress="{ interval: time, handler:method,index:activeObject }“

传入之间判断防抖延时
v-debounce="goOneKeyCharge{arg:time}"
1.0.0

1 year ago