开发者

资讯中心帮助中心开发者

3.0裁图组件参数

发布时间:2023-05-29 09:35 阅读:49
mode :
	free 	//随意
	ratio	//限定比例
	fixed	//指定大小

width :	//固定大小时候的宽度
height : 	//固定大小时候的高度
maxWidth	: //裁剪后的最大宽度
maxHeight : //裁剪后的最大高度

mode : free 自由
	autoCropWidth 	//计算出显示图片宽度
	autoCropHeight	//计算出显示图片高度
	fixed	// false
	fixedNumber	// []
	fixedBox	//fasle	//固定
	full	// true
	maxImgSize // max(maxWidth,maxHeight) || 2000
mode : ratio 按比例
	autoCropWidth	// (图宽 / 图高 > 比例宽 / 比例高)  ? (宽 = 最大,高按比例计算) :(高 = 最大,宽按比例计算)
	autoCropHeight	//
	fixed	//true
	fixedNumber	// width,height || 1:1
	fixedBox	//fasle
	full	//true
	maxImgSize // max(maxWidth,maxHeight) || 2000
	
mode : fixed 固定尺寸
	autoCropWidth	//指定宽 
	autoCropHeight	//指定高
	fixed	//false
	fixedNumber	// []
	fixedBox	//true
	full	//false
	maxImgSize // max(maxWidth,maxHeight) || 2000


国家级高新技术企业国家级高新技术企业科技型中小企业科技型中小企业