0.2.1 • Published 7 years ago
v-cropperjs v0.2.1
vue-cropperjs
A Vue component for use cropperjs.
Visit in https://vv13.github.io/v-cropperjs.
Installation
$ npm i v-cropperjsProps
| Name | Type | Required | Description |
|---|---|---|---|
| src | string | -- | Img src |
| options | object | -- | cropperjs's options |
| domProps | object | -- | Img DOM properties |
Options
See cropperjs documentation for all posible options
Methods
cropperjs instance in component's data named 'cropper', so you can use it like this.$refs.SOME_REF_NAME.cropper.zoom(0.1).