vue-painting
A Vue.js(v2.x+) component for cropping and painting image.
see:demo
Installation
NPM
npm install vue-painting --save
ES6:
components: VuePainting
CommonJS:
const VuePainting = components: VuePainting
Browser
Usage
Props
Prop | Type | Descrition |
---|---|---|
img | String | The image source,can be base64 and url |
Events
Name | Param[Type] | Descrition |
---|---|---|
saveImage | clipImage[Blob] | dispatch when save button click |
copyImage | clipImage[Blob] | dispatch when √ click |
quit | dispatch when quit |