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

[cdk:forms] 内置校验函数没有提供默认提示信息 #684

Closed
1 task done
lvzero535 opened this issue Dec 29, 2021 · 1 comment · Fixed by #689
Closed
1 task done

[cdk:forms] 内置校验函数没有提供默认提示信息 #684

lvzero535 opened this issue Dec 29, 2021 · 1 comment · Fixed by #689
Assignees

Comments

@lvzero535
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

const { required, minLength, maxLength } = Validators 引用这些API时,当不在IxFormItem上写message时没有默认的提示信息

What does the proposed API look like?

使用内部的校验函数时不通过校验且不在IxFormItem上写message时有默认的错误提示信息

@idux-bot
Copy link

idux-bot bot commented Dec 29, 2021

Translation of this issue:

[CDK: FORMS] Built-in model function does not provide default prompt information

  • i Have Searched The [https://github.com/iduxfe/idux/issues) of this repository and believe That this is not a duplicate.

What proBLEES THIS Feature SOLVE?

const {required, minlength, maxlength} = validators references these APIs, there is no default prompt when writing Message on IxFormItem

What does The proposed API Look Like?

With the inside check function, you do not pass the check and write Message on the IxFormItem, there is a default error message.

danranVm added a commit to danranVm/idux that referenced this issue Dec 30, 2021
danranVm added a commit that referenced this issue Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants