Skip to content
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][Refactor] #1723

Merged
merged 23 commits into from
Sep 26, 2022
Merged

[Upload][Refactor] #1723

merged 23 commits into from
Sep 26, 2022

Conversation

chaishi
Copy link
Collaborator

@chaishi chaishi commented Sep 22, 2022

Tencent/tdesign-common#858

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

  • 新增beforeAllFilesUpload,所有文件上传之前执行,支持一次性判定所有文件是否继续上传。已经存在的 beforeUpload 用于判定单个文件的是否继续上传

  • 新增事件 onValidate,文件校验不通过时触发,可能情况有:自定义全文件校验不通过、文件数量校验不通过、文件数量校验不通过

  • 新增事件 onOneFileSuccess ,多文件上传场景下,在单个文件上传成功后触发

  • beforeUpload 存在时,依然支持 sizeLimit 检测

  • formatRequest 用于新增或修改上传请求参数

  • 一个请求上传多个文件,参数携带全部文件

  • 新增 triggerButtonProps 用于指定触发按钮风格

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

…pload

# 请输入一个提交信息以解释此合并的必要性,尤其是将一个更新后的上游分支
# 合并到主题分支。
#
# 以 '#' 开始的行将被忽略,而空的提交说明将终止提交。
@github-actions
Copy link
Contributor

github-actions bot commented Sep 22, 2022

完成

@PengYYYYY PengYYYYY merged commit 174dfb0 into Tencent:develop Sep 26, 2022
This was referenced Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants