cropper-multiple
v0.0.2
Published
## usage ``` npm i cropper-multiple -S ```
Downloads
3
Readme
Cropper Multple
usage
npm i cropper-multiple -S
<div class="cropper-container"></div>
<button id="btnGet" type="button">获取裁剪图片</button>
import CropperMultiple from 'cropper-multiple'
const cropper = new CropperMultiple({
containerClass: '.cropper-container',
imgUrl: './test.png'
})
console.log(cropper)
const btnGet = document.getElementById('btnGet')!
btnGet.addEventListener('click', async () => {
const imgs = await cropper.getCropperImgs()
console.log(imgs)
})
.cropper-container{
width: 500px;
height: 300px;
}