Loading repository data…
Loading repository data…
komomoo / repository
💇♀️ A simple and elegant mobile image crop upload component for Vue 2.x | 简洁易用的 vue 移动端图片裁剪上传组件
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
English | 简体中文
yarn add vue-slim-cropper # OR npm i -S vue-slim-cropper
// main.js
import SlimCropper from 'vue-slim-cropper'
Vue.use(SlimCropper)
<SlimCropper ref="cropper" :src=""></SlimCropper>
| Name | Description | Type | Default |
|---|---|---|---|
| src | image URL | String | undefined |
| aspectRatio | width / height ratio | Number | 1 |
| cropperOptions | cropperjs options: https://github.com/fengyuanchen/cropperjs | Object | null |
| Name | Description | Parameters |
|---|---|---|
| getCroppedBlob | get the cropped image blob object | type = 'image/jpeg', quality = 1 |
😉😘 If it is helpful to you,please encourage me with a ⭐️Star ~
Copyright (c) 2018-present, komo