-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
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: Form rule
support warningOnly
that not block form submit
#30829
Conversation
|
Size Change: +429 B (0%) Total Size: 831 kB
|
components/_util/motion.tsx
Outdated
@@ -3,7 +3,17 @@ import { MotionEvent } from 'rc-motion/lib/interface'; | |||
|
|||
// ================== Collapse Motion ================== | |||
const getCollapsedHeight: MotionEventHandler = () => ({ height: 0, opacity: 0 }); | |||
const getRealHeight: MotionEventHandler = node => ({ height: node.scrollHeight, opacity: 1 }); | |||
const getRealHeight: MotionEventHandler = node => { | |||
const { overflow } = node.style; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 overflow
只做覆盖还原用,不在乎它的值的~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是否也是预期的?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个代码应该没用了,我去掉它~
Codecov Report
@@ Coverage Diff @@
## feature #30829 +/- ##
===========================================
+ Coverage 98.81% 99.96% +1.14%
===========================================
Files 363 397 +34
Lines 7280 7523 +243
Branches 1967 2105 +138
===========================================
+ Hits 7194 7520 +326
+ Misses 86 3 -83
Continue to review full report at Codecov.
|
rule
support warningOnly
that not block form submitrule
support warningOnly
that not block form submit
TS 校验那个需要 antd 发包才能对上,先不用管 |
ci 挂了 |
|
测试覆盖率掉了 3 行。 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
https://preview-30829-ant-design.surge.sh/components/form-cn/#components-form-demo-warning-only
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge