mmdr

1.0.0 • Public • Published

自定义指令封装

安装 npm install mmdr

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

使用

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

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mmdr

      Weekly Downloads

      3

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      2.23 kB

      Total Files

      5

      Last publish

      Collaborators

      • 1638592847sakala