1.0.8 • Published 6 years ago

vue-painting v1.0.8

Weekly downloads
48
License
-
Repository
github
Last release
6 years ago

vue-painting

A Vue.js(v2.x+) component for cropping and painting image.

see:demo

Installation

NPM

npm install vue-painting --save

ES6:

import VuePainting from 'vue-painting'

new Vue({
  components: {
    VuePainting
  }
})

CommonJS:

const  VuePainting = require('vue-painting')

new Vue({
  components: {
    VuePainting
  }
})

Browser

<body>
  <script src="path/to/vue.js"></script>
  <script src="path/to/vue-painting.js"></script>
  <script>
    new Vue({
      components: {
        'vue-painting': VuePainting
      }
    })
  </script>
</body>

Usage

Props

PropTypeDescrition
imgStringThe image source,can be base64 and url

Events

NameParamTypeDescrition
saveImageclipImageBlobdispatch when save button click
copyImageclipImageBlobdispatch when click
quitdispatch when quit

License

MIT

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago