Socket
Book a DemoInstallSign in
Socket

vue-slim-cropper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-slim-cropper

💇 A simple and elegant mobile image crop upload component for Vue 2.x | 简洁易用的 vue 移动端图片裁剪上传组件

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

vue-slim-cropper

English | 简体中文

🌰 Example

Demo

Demo Source Code

🚀 QuickStart

  • Install
yarn add vue-slim-cropper # OR npm i -S vue-slim-cropper
  • Import
// main.js
import SlimCropper from 'vue-slim-cropper'
Vue.use(SlimCropper)
<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

Keywords

vue

FAQs

Package last updated on 19 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts