-
-
Notifications
You must be signed in to change notification settings - Fork 50.5k
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: Upload originFileObj
not correct
#29614
Conversation
Codecov Report
@@ Coverage Diff @@
## master #29614 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 393 394 +1
Lines 7504 7565 +61
Branches 2111 2132 +21
=========================================
+ Hits 7504 7565 +61
Continue to review full report at Codecov.
|
Size Change: +104 B (0%) Total Size: 836 kB
ℹ️ View Unchanged
|
ant-design/components/upload/Upload.tsx Line 132 in 3c7030a
@zombieJ onBatchStart 触发 onChange 有问题,参数里面的 file 是 rc 那边拿过来的,不是 |
疏忽,应该也 wrap 一下。我改改。另外 onBatchStart 这个时机是为了受控模式用的,如果做以前的 onStart 触发兼容不是不可以,但是内部又要多一个过渡状态,会变得很恶心。不如一次性切割干净。 |
你好,我这边有试这个upload组件,antd版本4.13.1。返回值还是一个Proxy对象。而且返回值对象里面不包含response的数据,请问是删掉response这个字段了吗? |
Upload 组件 originFileObj 对象为空,实测还是有问题。 |
给个复现链接 https://codesandbox.io/s/antd-reproduction-template-6e93z?file=/index.js |
版本问题,版本升级后已经修复了 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
onChange
param offile.originFileObj
return nest Proxy object.onChange
参数file.originFileObj
返回嵌套 Proxy 对象的问题。☑️ Self Check before Merge