0.3.2 • Published 2 years ago

vue-signboard v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago