-
-
Notifications
You must be signed in to change notification settings - Fork 51k
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
rm drawer config consumer props #17390
Conversation
Deploy preview for ant-design ready! Built with commit c020797 |
getPrefixCls, | ||
renderEmpty, | ||
csp, | ||
autoInsertSpaceInButton, |
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.
这样以后 ConfigProvider 加东西还会出现,@zombieJ 看看有没有更好的办法。
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.
我一般用到什么加什么,rest 会有点多……
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.
可以抽一个库处理 dom attr,传递给 dom 前 omit 掉不用的。
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.
能否 withConfigConsumer 加个参数,声明组件用到的 props,这样后续 ConfigProvider 加属性不会影响到已有组件。
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.
类似于 originProps
这种吗?
CI 挂了 |
这 CI 是报的哪门子错啊??? |
在 style/index.tsx 里加一个: // deps-lint-skip: empty ConfigProvider + renderEmpty 命中了 empty 的 rule,以为用到了 Empty 组件…… |
Codecov Report
@@ Coverage Diff @@
## master #17390 +/- ##
=======================================
Coverage 96.03% 96.03%
=======================================
Files 267 267
Lines 7414 7414
Branches 2067 2065 -2
=======================================
Hits 7120 7120
Misses 292 292
Partials 2 2
Continue to review full report at Codecov.
|
🤔 This is a ...
👻 What's the background?
💡 Solution
📝 Changelog
☑️ Self Check before Merge