-
Notifications
You must be signed in to change notification settings - Fork 319
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
Upload Tests/Features/Bugs #1918
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chaishi
requested review from
honkinglin,
uyarn and
carolin913
as code owners
January 28, 2023 10:25
honkinglin
reviewed
Jan 29, 2023
honkinglin
approved these changes
Jan 29, 2023
Merged
16 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
关联子仓库:Tencent/tdesign-common#1126
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
file
,保留file[0]
file[1]
即可,同时新增参数length
表示本次上传文件的数量onError/onSuccess/onProgress
添加关键事件参数XMLHttpRequest
,用于获取上传请求更详细的信息tips
支持ReactNode
onError
onCancelUpload
mockProgressDuration
,用于设置模拟上传进度间隔时间,大文件大一点,小文件小一点onSelectChange
事件第二个参数currentSelectedFiles
不正确问题autoUpload=false
场景下,即使beforeUpload
函数全部返回false
依然会触发onChange
事件问题data
为函数时,参数为空问题,补充参数files
theme=image-flow
时,无法使用fileListDisplay
自定义图片列表问题max
时,且没有可继续上传的文件,依然触发 change 事件问题theme=file
或者theme=image-flow
时,abridgeName
无效问题theme=image-flow
且autoUpload=false
时,change 事件第一个参数丢失 file.url 问题change
事件第二个参数file
值并非当前文件问题95%+
☑️ 请求合并前的自查清单