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

[新功能需求] form 表单验证,聚焦和错误提示. #393

Closed
PdxLook opened this issue Jun 28, 2024 · 4 comments
Closed

[新功能需求] form 表单验证,聚焦和错误提示. #393

PdxLook opened this issue Jun 28, 2024 · 4 comments
Labels
feature: need confirm 待确认的新特性

Comments

@PdxLook
Copy link
Contributor

PdxLook commented Jun 28, 2024

这个功能解决了什么问题?

希望有一个配置,可以切换错误提示显示方式.input底部或者toast提示,并且聚焦错误的第一个输入框。
errorType String toast | border-bottom | none

你期望的 API 是什么样子的?

xml <wd-form ref="form" :model="model" errorType="toast"/>
@PdxLook PdxLook added the feature: need confirm 待确认的新特性 label Jun 28, 2024
@wll8
Copy link

wll8 commented Jul 17, 2024

当提交表单时,如果有4个验证错误项,这时候我填写其实某一错误项时,其他的输入框的错误也消失了。官网 demo 也是这样的,请问这是一个功能吗?应如何避免。

240717_090424

@Moonofweisheng
Copy link
Owner

Moonofweisheng commented Jul 17, 2024 via email

@wll8
Copy link

wll8 commented Jul 18, 2024

选择校验指定字段 就能解决提交时提示所有的错误项,输入某项时未聚焦的其他项不被清除错误提示吗?像这样:

240718_090408

@Moonofweisheng
Copy link
Owner

Moonofweisheng commented Jul 18, 2024 via email

@PdxLook PdxLook closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性
Projects
None yet
Development

No branches or pull requests

3 participants