1.0.1 • Published 2 years ago
easy-directives v1.0.1
使用
improt vue-directives from ‘easy-directives’
vue.use(vue-directives)
v-move 拖拽
例:v-move
v-watermark 水印背景
必选项: text(string)可选项: font(string)textColor(string)
例 :v-watermark=”{text:’水印‘ , font:'16px Microsoft JhengHei' , textColor: 'rgba(180,180,180,0.6)'}“
v-longpress 长按触发
必选项: fun(function) time(number)
例:v-longpress="{fun : function(){ alert("Hello world!") } , time : 2000}"