Skip to content

Commit

Permalink
fix: #1286
Browse files Browse the repository at this point in the history
  • Loading branch information
Wugaoliang committed Nov 6, 2020
1 parent f0681b8 commit 36ca126
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/upload/AvatarUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'cropperjs/dist/cropper.css'
const AvatarUpload = ({
onRemove,
disabled,
accept,
accept = 'image/*',
localeDatas,
theme,
fileList,
Expand Down
2 changes: 1 addition & 1 deletion components/upload/PictureListUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PictureListUpload = ({
showUploadList = true,
multiple,
disabled,
accept,
accept = 'image/*',
onRemove,
onDownload,
fileList,
Expand Down
2 changes: 1 addition & 1 deletion components/upload/PictureUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import useUpload from './hooks/useUpload'
const PictureUpload = ({
onRemove,
disabled,
accept,
accept = 'image/*',
localeDatas,
theme,
fileList,
Expand Down
1 change: 1 addition & 0 deletions docs/demo/upload/section-upload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Demo extends React.Component {
// uploadAction="https://mife-gallery.test.mi.com/hiui/upload"
uploadAction="https://jsonplaceholder.typicode.com/posts/"
tips='仅支持 jpg/png 文件,且不超过 500kb'
accept="image/png,image/jpg"
headers={{name: 'mi'}}
content='上传文件'
param={param}
Expand Down

0 comments on commit 36ca126

Please sign in to comment.