提交 2adbcb95 作者: ZhangLingKun

功能:文件上传默认大小调整为10MB

上级 f139955e
...@@ -27,7 +27,7 @@ interface PropsType { ...@@ -27,7 +27,7 @@ interface PropsType {
export const Uploader: React.FC<PropsType> = (props) => { export const Uploader: React.FC<PropsType> = (props) => {
Uploader.defaultProps = { Uploader.defaultProps = {
listType: 'picture-card', listType: 'picture-card',
fileSize: 2, fileSize: 10,
fileLength: 1, fileLength: 1,
fileType: ['image/png', 'image/jpeg', 'image/jpg', 'image/gif'], fileType: ['image/png', 'image/jpeg', 'image/jpg', 'image/gif'],
defaultFileList: [], defaultFileList: [],
......
...@@ -122,6 +122,7 @@ const ContractModal: FC<ModalProps & selfProps> = ({ open, onOk, onCancel, joinI ...@@ -122,6 +122,7 @@ const ContractModal: FC<ModalProps & selfProps> = ({ open, onOk, onCancel, joinI
> >
<Uploader <Uploader
fileUpload fileUpload
fileSize={20}
listType='text' listType='text'
defaultFileList={contractFileList} defaultFileList={contractFileList}
onChange={uploadSuccess} onChange={uploadSuccess}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论