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

t-input 使用maxlength限制内容长度,show-limit-number显示错误 #4413

Closed
MrHangZai opened this issue Jul 18, 2024 · 2 comments · Fixed by #4429
Closed

t-input 使用maxlength限制内容长度,show-limit-number显示错误 #4413

MrHangZai opened this issue Jul 18, 2024 · 2 comments · Fixed by #4429
Labels
🐞 bug Something isn't working easy 上架到腾讯内部issueshoot平台的任务 - 容易难度 issueShoot 上架到腾讯内部issueshoot平台的任务 to be published to be published

Comments

@MrHangZai
Copy link

MrHangZai commented Jul 18, 2024

tdesign-vue-next 版本

"tdesign-vue-next": "^1.6.8"

重现链接

https://tdesign.tencent.com/vue-next/components/input?tab=demo#%E5%B8%A6%E9%95%BF%E5%BA%A6%E9%99%90%E5%88%B6%E7%9A%84%E8%BE%93%E5%85%A5%E6%A1%86

重现步骤

在官方demo [带长度限制的输入框] 下第一个输入框输入一二三🎁,show-limit-number显示4/5但是却不可以再输入任何内容了。
1

期望结果

期望show-limit-number显示正确

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2024-07-26 00:00:00 +0000 UTC
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: ivringpeng
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

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

@MrHangZai
Copy link
Author

t-input v-model.trim="value" :maxlength="5" :suffix="${value.length}/5" 用suffix代替show-limit-number貌似不错

@uyarn uyarn added 🐞 bug Something isn't working issueShoot 上架到腾讯内部issueshoot平台的任务 easy 上架到腾讯内部issueshoot平台的任务 - 容易难度 labels Jul 23, 2024
novlan1 added a commit to novlan1/tdesign-vue-next that referenced this issue Jul 23, 2024
@uyarn uyarn added the to be published to be published label Jul 24, 2024
@uyarn uyarn closed this as completed in 14f3cff Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working easy 上架到腾讯内部issueshoot平台的任务 - 容易难度 issueShoot 上架到腾讯内部issueshoot平台的任务 to be published to be published
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants