Package Exports
- vue2imgclip
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue2imgclip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue2imgClip
图片裁剪图片
Installation
npm i vue2imgclip
Usage
import Vue from 'vue'
import vue2imgclip from 'vue2imgclip'
Vue.use(vue2imgclip)
Attribute
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
imgURL | 必选参数, 裁切的图片的url | string | — | — |
confirmLabel | 可选参数, 确认按钮 | string | — | — |
closeLabel | 可选参数, 取消按钮 | string | — | - |
events
事件 | 说明 | 返回值 | 可选值 | 默认值 |
---|---|---|---|---|
cripURL | 返回裁切成功的值 | base64和blob | — | — |
closeClip | 取消裁切 | — | — | — |