1.0.5 • Published 1 year ago

sign-pic v1.0.5

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

sign-pic

简易电子签名、绘板

Install | 安装


npm i sign-pic

Use | 使用


1.全局引用
import Sign from 'sign-pic';
Vue.use(Sign);

2.局部加载
import Sign from 'sign-pic';
Vue.components('sign', Sign)

组件中使用:
<sign :lineWidth=2 :strokeColor="'pink'" :showBtn="true" @complete="showData" />

props | 属性说明


字段说明默认值
width画布宽度300
height画布高度200
lineWidth线条宽度2
strokeColor线条颜色'red'
background画布背景色'transparent'
showBtn展示按钮true

events | 事件


事件名说明回调参数
complete绘画完成时触发【showBtn为true时,点击保存的时候触发,false时绘画完成自动触发】绘画完成保存的base64的图片文件(dataBase)
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago