-
-
Notifications
You must be signed in to change notification settings - Fork 51.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: support thumbnail for non-image files by upload onChange #25432
fix: support thumbnail for non-image files by upload onChange #25432
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ff245e6:
|
e7d6c1c
to
686ab31
Compare
Codecov Report
@@ Coverage Diff @@
## master #25432 +/- ##
=======================================
Coverage 99.51% 99.51%
=======================================
Files 368 368
Lines 7204 7204
Branches 2009 1962 -47
=======================================
Hits 7169 7169
Misses 35 35
Continue to review full report at Codecov.
|
目前使用upload 组件报这个警告,需要怎么操作? [antd: Progress] |
</div> | ||
</div> | ||
</span> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不用修改 demo,补充到 test case 里去。
可以发到 master,作为一个 |
好的,稍等我改下 |
f3c4a0d
to
ff245e6
Compare
done |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #25401
💡 Background and solution
isImageUrl
callisImageFileType
to checkfile.type
first when file was uploaded manually.so if
file.thumbUrl
was configured, skip that check.📝 Changelog
thumbUrl
configured inonChange
eventonChange
事件中设置thumbUrl
来展示缩略图☑️ Self Check before Merge