1.0.2 • Published 11 months ago
c-directives v1.0.2
vue-directives Vue中常见的自定义指令集合
使用方法
- 安装依赖
npm install vue-directives
- 注册指令
import vueDirectives from 'vue-directives'
Vue.use(vueDirectives)
基于 vue 的自定义指令集合,包含
- 函数节流
- 函数防抖
- 输入框小数点限制
- 禁止表情及特殊字符
- 图片懒加载
- 权限校验
- 拖拽指令
- 复制粘贴指令
- 长按指令
- 实现页面水印