Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

form-item validate rule need a render-message like render-label #2525

Closed
yiptsangkin opened this issue Mar 1, 2022 · 3 comments
Closed

form-item validate rule need a render-message like render-label #2525

yiptsangkin opened this issue Mar 1, 2022 · 3 comments
Labels
feature request New feature or request priority: high

Comments

@yiptsangkin
Copy link

This function solves the problem (这个功能解决的问题)

when change i18n language, the rule message can not change.

Expected API (期望的 API)

:render-message="(option) => h('span', {}, $t(option.message))"

@github-actions github-actions bot added the feature request New feature or request label Mar 1, 2022
@Talljack
Copy link
Contributor

Talljack commented Mar 1, 2022

The form-item validate message is written by yourself, we cannot control it, maybe you can retry validate.

@07akioni
Copy link
Collaborator

07akioni commented Mar 1, 2022

e message is written by yourself, we cannot control it, maybe yo

We may try it, I think it's somehow possible.

Although message is uncontrolled, it can accept context and change its content.

@yiptsangkin
Copy link
Author

thx!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature request New feature or request priority: high
Projects
None yet
Development

No branches or pull requests

3 participants