1.0.9 • Published 4 years ago

react-antd-super-upload v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

react-antd-super-upload

npm.io

属性类型默认描述
cropWidthnumber100Crop width in px. If useRatio is true, it'll be ratio.
cropHeightnumber100Crop height in px. If useRatio is true, it'll be ratio.
useRatiobooleanfalseIf use width and height as ratio, not real px. And crop will fill the width or height. e.g. width={500} height={400} and width={5} height={4} are exactly the same.
cropResizebooleantrueIf crop can resize.
cropResizeAndDragbooleantrueIf crop can resize and drag.
cropModalTitlestring图片裁剪Modal title.
cropModalWidthnumber520Modal width in px.
beforeCropfunction-Execute before crop, if return false, modal will not open (Not support Promise). Ant Design Upload beforeUpload prop will execute after crop, before upload.
fileTypestring""接受上传的文件类型, 详见 input accept Attribute , 值为空时不限
sizenumber0单个文件大小 , 值为0时不限
minWidthnumber0单个文件最小宽度 , 值为0时不限
minHeightnumber0单个文件最小高度 , 值为0时不限
maxWidthnumber0单个文件最大宽度 , 值为0时不限
maxHeightnumber0单个文件最大高度 , 值为0时不限
enCropbooleanfalse图片上传时开启裁剪
filterarray[]值类似 {name: 'xx', fn: Function}
maxnumber0图片个数限制
其它其它属性同 antd upload
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago