-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
feat: validate add label #51
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/react-component/rc-field-form/nlkiozowr |
Codecov Report
@@ Coverage Diff @@
## master #51 +/- ##
==========================================
+ Coverage 99.86% 99.86% +<.01%
==========================================
Files 13 13
Lines 752 753 +1
Branches 157 159 +2
==========================================
+ Hits 751 752 +1
Misses 1 1
Continue to review full report at Codecov.
|
有点管多了,如果是需要定制消息的话应该使用 |
唉,我们这边场景是:请输入${label} ,哈哈哈。 |
Why this is closed? This is exactly what I need and exactly what rc-form has. Usually you want the name of the field to be something but in the validate message you want to display something different.. For instance, my field name is full_name and it's required, I don't want to show the message: 'full_name' is required to the user, instead I want to show Full name is required, something like that.. Also, the idea to add the custom message to the field to match the message that I want is very dumb because I would have to add the custom message for every input in my entire application. Please @zombieJ , consider merging this PR or provide me someway to achieve this. Thanks |
算了,不是我想要的, |
类似于这样,添加
label
。