Closed Wxh16144 closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
upload | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 30, 2024 1:57am |
此次更改涉及AjaxUploader
和Upload
组件的属性调整。AjaxUploader
组件新增了name
属性,以便在文件输入元素中使用,增强了与表单的集成。与此同时,Upload
组件移除了默认的name
属性,可能影响其文件上传的处理方式。此外,测试文件中增加了对Upload
组件name
属性的测试用例,以确保其正确反映在渲染的输入元素中。
文件 | 更改摘要 |
---|---|
src/AjaxUploader.tsx |
新增name 属性到AjaxUploader 组件,并在输入元素中集成该属性。 |
src/Upload.tsx |
移除Upload 组件中的默认name 属性,调整文件上传处理方式。 |
tests/uploader.spec.tsx |
新增测试用例,验证Upload 组件渲染时name 属性的正确性。 |
在草地上跳跃的小兔子,
新增属性真是太开心,
文件上传更灵活,
让我们一起欢呼吧!
兔子们齐声歌唱,
祝贺变化,乐无穷! 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.84%. Comparing base (
aa2e1dd
) to head (b37ed28
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
antd 仓库需要更新快照。
background: https://github.com/ant-design/ant-design/issues/50643
Summary by CodeRabbit
AjaxUploader
组件中添加了name
属性,以增强文件输入的可识别性和表单提交的功能。Upload
组件中的name
属性的默认状态初始化,提升了文件上传的灵活性。uploader
测试套件中新增测试用例,验证Upload
组件是否正确处理name
属性。