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

[Input 输入框] 希望给文本输入框组件增加邮件类型,即type=“email” #3206

Open
LawyerLu opened this issue Oct 17, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@LawyerLu
Copy link

这个功能解决了什么问题

用户如果输入的非邮件地址则提示信息

你建议的方案是什么

增加一个type类型email,当type为email时,验证输入的文本是否包含@,或者更为准确的验证方式

Copy link
Contributor

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

@anlyyao anlyyao self-assigned this Oct 21, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Oct 22, 2024

@LawyerLu 组件内部现阶段不太好支持,没有配套的校验规则和交互提醒,等form组件进入开发阶段在一并考虑吧。当前如果input需要支持邮箱校验场景,可以在change中,正则判断输入内容,根据匹配结果改变 status/tips 属性~

@anlyyao anlyyao added the enhancement New feature or request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants