tom-crop-image
A Vue.js project
Build Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build# build for production and view the bundle analyzer reportnpm run build --report
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
tom-crop-image use hammerjs
on pc user should press both shift key and left mouse to rotate
step 1:install in your main.js
Vue
step 2:use in your component
<tom-crop:data-show='showCrop':data-width='400':data-height='200'@on-success='getCropSuccess'@on-hide='showCrop=false'></tom-crop>// methods{console;detaildfd}