A electronic signature component by Vue.js
install
npm install vue-signature-simple
main.js
import VueSignature from 'vue-signature-simple'
Vue.use(VueSignature)
.vue template
<vue-signature ref='s1' />
<vue-signature ref='s2' />
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? |
MIT
paypal
paypal.me/jaeheng
wechat pay