kan / vue-cropperjs

A Vue wrapper component for cropperjs https://github.com/fengyuanchen/cropperjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-cropperjs

A Vue wrapper component for cropperjs.

NPM

Demo

Checkout here agontuk.github.io/vue-cropperjs

Installation

npm install --save vue-cropperjs

For Vue 1.0, use

npm install --save vue-cropperjs@1.0.3

You will also need css & style loader for webpack

Usage

See the example files & cropperjs documentation

Options

src

  • Type: string
  • Required: false

containerStyle

  • Type: object
  • Required: false

Styling for the image container

imgStyle

  • Type: object
  • Required: false

Styling for the image

alt

  • Type: string
  • Required: false

Alternate text for the image

Crop related options

See cropperjs documentation for all posible options & methods.

License

MIT

About

A Vue wrapper component for cropperjs https://github.com/fengyuanchen/cropperjs

License:MIT License


Languages

Language:JavaScript 97.3%Language:HTML 2.7%