0.2.1 • Published 6 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-cropperjs
Props
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)
.