pet/uni_modules/uview-next/libs/config/props/cropper.js

35 lines
1.1 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* @Author : LQ
* @Description :
* @version : 1.0
* @Date : 2021-08-20 16:44:21
* @LastAuthor : LQ
* @lastTime : 2021-08-20 16:47:24
* @FilePath : /u-view2.0/uview-ui/libs/config/props/cropper.js
*/
export default {
// cropper 组件
cropper: {
// 是否显示
show: false,
// 裁剪框形状circle-圆形square-方形
shape: 'square',
// 每次显示时是否自动打开选择图片
autoChoose: true,
// 裁剪框宽度单位rpx
rectWidth: 300,
// 裁剪框高度单位px
rectHeight: 300,
// 输出图片宽度单位px
width: 400,
// 输出图片高度单位px
height: 400,
// 输出的图片类型,如果发现裁剪的图片很大,可能是因为设置为了"png",改成"jpg"即可
fileType: 'jpg',
// 图片的质量,取值范围为 (0, 1]不在范围内时当作1.0处理
quality: 1,
// 是否显示网格线
showGrid: true,
}
}