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] multiple=false时, max=1的表现问题 #2909

Closed
wc19950724 opened this issue May 29, 2023 · 6 comments
Closed

[Upload] multiple=false时, max=1的表现问题 #2909

wc19950724 opened this issue May 29, 2023 · 6 comments
Assignees
Labels
🐞 bug Something isn't working 📒 Documentation Improvements or additions to documentation

Comments

@wc19950724
Copy link

tdesign-vue-next 版本

1.3.4

重现链接

https://stackblitz.com/edit/qrn372?file=src%2Fdemo.vue

重现步骤

当设置单文件上传时, 如果max=1,重新选择文件不会更新成新文件名,并且不会触发change事件

期望结果

触发change事件,更新文件名
or
补充文档说明, 单文件时无需设置max=1

实际结果

文件名不更新 & change事件不触发

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

👋 @wc19950724,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@chaishi
Copy link
Collaborator

chaishi commented May 29, 2023

multiple = true 时,max 有效

@wc19950724
Copy link
Author

multiple = true 时,max 有效

如果multiple = false & max = 2
只要max !== 1 都可正常触发change和更新文件名
请尽可能的消除这种情况或在文档注明该互斥情况

@uyarn uyarn changed the title [t-upload] multiple=false时, max=1的表现问题 [Upload] multiple=false时, max=1的表现问题 May 30, 2023
@github-actions
Copy link
Contributor

♥️ 有劳 @PengYYYYY @chaishi 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @wc19950724

@PengYYYYY PengYYYYY added 🌍 Compatibility issue for compatibility 📒 Documentation Improvements or additions to documentation and removed 🌍 Compatibility issue for compatibility labels May 30, 2023
@chaishi
Copy link
Collaborator

chaishi commented Nov 5, 2023

  1. 文档已更新说明
  2. 代码中已兼容 multiple=false,max=1 的情况,最新代码可以触发 change 事件,并更新文件
    resolved in [Upload] some features #3566

@chaishi chaishi added the 🐞 bug Something isn't working label Nov 5, 2023
@uyarn uyarn added the to be published to be published label Nov 7, 2023
@github-actions github-actions bot mentioned this issue Nov 7, 2023
16 tasks
@chaishi chaishi removed the to be published to be published label Nov 7, 2023
@chaishi
Copy link
Collaborator

chaishi commented Nov 7, 2023

resolved at v1.6.8 2023-11-07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 📒 Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants