0.1.1 • Published 2 years ago

vue-slim-cropper v0.1.1

Weekly downloads
21
License
MIT
Repository
github
Last release
2 years ago

vue-slim-cropper

English | 简体中文

🌰 Example

Demo

Demo Source Code

🚀 QuickStart

  1. Install
yarn add vue-slim-cropper # OR npm i -S vue-slim-cropper
  1. Import
// main.js
import SlimCropper from 'vue-slim-cropper'
Vue.use(SlimCropper)
  1. Usage. Please refer to the Demo Source Code
<SlimCropper ref="cropper" :src=""></SlimCropper>

🔌 API

Props

NameDescriptionTypeDefault
srcimage URLStringundefined
aspectRatiowidth / height ratioNumber1
cropperOptionscropperjs options: https://github.com/fengyuanchen/cropperjsObjectnull

Methods

NameDescriptionParameters
getCroppedBlobget the cropped image blob objecttype = 'image/jpeg', quality = 1

😉😘 If it is helpful to you,please encourage me with a ⭐️Star ~

Changelog

License

MIT

Copyright (c) 2018-present, komo