-
-
Notifications
You must be signed in to change notification settings - Fork 278
feat: rules support warningOnly
#304
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/field-form/7Gvaa2a5PAYFhENJF4XUppmPWZzE |
warningOnly
warningOnly
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
=======================================
Coverage 99.89% 99.90%
=======================================
Files 13 13
Lines 973 1005 +32
Branches 230 230
=======================================
+ Hits 972 1004 +32
Misses 1 1
Continue to review full report at Codecov.
|
warningOnly
warningOnly
到 ant-design 了,warning 需要黄色显示吗? |
嗯,现在 antd 有 warning 类型。但是需要手工设置,底层支持后就可以自动切 warning 状态了。 |
* 1.20.1 * feat: Support onError event * fix: Every update errors should trigger event * test: Test driven of onError * feat: All message support variable * fix: Fill template logic * feat: support warning * test: Test driven * chore: export getFieldWarning * fix: summary validate logic * test: Update coverage * test: Update coverage
本来以为要改
async-validator
,好像勾一下也行了?顺道做了一下:ant-design/ant-design#30016