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

feat(upload): tests & features & bugs #2418

Merged
merged 5 commits into from
Feb 21, 2023

Conversation

chaishi
Copy link
Collaborator

@chaishi chaishi commented Feb 18, 2023

发布时,升组件第 2 位版本号

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

  • feat(Upload): 可拖拽的单图片/单文件上传,支持使用 fileListDisplay 自定义文件信息内容

  • feat(Upload): 一个请求上传多个文件时,去除重复参数 file,保留 file[0] file[1] 即可,同时新增参数 length 表示本次上传文件的数量

  • feat(Upload): onError/onSuccess/onProgress 添加关键事件参数 XMLHttpRequest,用于获取上传请求更详细的信息

  • feat(Upload): tips 支持插槽,支持函数

  • feat(Upload): 新增上传请求超时也会执行 onError

  • feat(Upload): 支持事件 onCancelUpload

  • feat(Upload): 支持 mockProgressDuration,用于设置模拟上传进度间隔时间,大文件大一点,小文件小一点

  • fix(Upload): 修复 onSelectChange 事件第二个参数 currentSelectedFiles 不正确问题

  • fix(Upload): 修复 autoUpload=false 场景下,即使 beforeUpload 函数全部返回 false 依然会触发 onChange 事件问题

  • fix(Upload): 修复 data 为函数时,参数为空问题,补充参数 files

  • fix(Upload): 修复 theme=image-flow 时,无法使用 fileListDisplay 自定义图片列表问题

  • fix(Upload): 修复文件数量超出 max 时,且没有可继续上传的文件,依然触发 change 事件问题

  • fix(Upload): 修复 theme=file 或者 theme=image-flow 时,abridgeName 无效问题

  • fix(Upload): 修复 theme=image-flowautoUpload=false 时,change 事件第一个参数丢失 file.url 问题

  • fix(Upload): 修复非自动上传场景 change 事件第二个参数 file 值并非当前文件问题

  • fix(Upload): 修复各类插槽无效和事件无效问题

  • test(Upload): 输出完整的测试用例(135 个),平均覆盖率达 95%+

  • 本条 PR 不需要纳入 Changelog

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

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

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2023

完成

@PengYYYYY PengYYYYY merged commit f2ea841 into Tencent:develop Feb 21, 2023
@github-actions github-actions bot mentioned this pull request Feb 21, 2023
15 tasks
sinbadmaster pushed a commit to sinbadmaster/tdesign-vue-next that referenced this pull request Jun 2, 2023
* feat(upload): tests & features & bugs

* fix: tnode affect snapshot

* chore: comment for new function usage

* chore: fix typo

* chore: fix lint

---------

Co-authored-by: Uyarn <[email protected]>
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.

3 participants