JavaScript È°¿ëÆÁ
2022.05.02 / 10:03
vue-signature-simple
Äڷγª
Ãßõ ¼ö 94
vue-signature-simple
A electronic signature component by Vue.js
Usage
install
npm install vue-signature-simple
main.js
import VueSignature from 'vue-signature-simple'
Vue.use(VueSignature)
.vue template
API
Props
name | description | default |
---|---|---|
width | signature width | 300 |
height | signature height | 100 |
strokeColor | pen color | black |
strokeSize | pen size | 2 |
Methods
name | description | params |
---|---|---|
clear | clear canvas | |
getSignature | get signature base64 data | format: (image/png)(image/jpeg)(image/svg+xml) |
isEmpty | return canvas is empty? |
License
MIT
donate
paypal
paypal.me/jaeheng
wechat pay
÷ºÎÆÄÀÏ
vue-signature-simple-master.zip