0.3.2 • Published 6 months ago

vue-signboard v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

vue-signboard

A electronic signature component by Vue.js

Usage

install

npm install vue-signboard

main.js

import VueSignature from 'vue-signboard';
Vue.use(VueSignature);

.vue template

<vue-signature ref='s1' />
<vue-signature ref='s2' />

API

Props

namedescriptiondefault
widthsignature width300
heightsignature height100
strokeColorpen colorblack
strokeSizepen size2

Methods

namedescriptionparams
clearclear canvas
getSignatureget signature base64 dataformat: (image/png)(image/jpeg)(image/svg+xml)
isEmptyreturn canvas is empty?
getIDget canvas element id
loadFromPictureload from upload picturefile
lockPaddisable input of signature padboolean

License

MIT

0.3.0

6 months ago

0.3.2

6 months ago

0.3.1

6 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

2 years ago