-
-
Notifications
You must be signed in to change notification settings - Fork 49.4k
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
fix: unified modal and drawer protal and fix overflow conflict #17600
Conversation
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.
Could you please add tests to make sure this change works as expected?
Deploy preview for ant-design ready! Built with commit d0c636f |
为什么 15 会挂? |
别搞15了 又没啥人用 都快17了 |
Codecov Report
@@ Coverage Diff @@
## master #17600 +/- ##
==========================================
- Coverage 96.09% 96.05% -0.05%
==========================================
Files 267 267
Lines 7433 7425 -8
Branches 2035 2033 -2
==========================================
- Hits 7143 7132 -11
- Misses 288 291 +3
Partials 2 2
Continue to review full report at Codecov.
|
我也觉得,,汗。。。 |
干他娘的,,怎么又挂了。。。 |
3.x 版本里 15 还是要看的。 |
16那么多好用的都不能用 |
| getContainer | 指定 Drawer 挂载的 HTML 节点 | HTMLElement \| `() => HTMLElement` \| Selectors | 'body' | 3.7.0 | | ||
| maskClosable | 点击蒙层是否允许关闭 | boolean | true | 3.7.0 | 3.7.0 | | ||
| mask | 是否展示遮罩 | Boolean | true | | ||
| getContainer | 指定 Drawer 挂载的 HTML 节点, false 为挂载在当前 dom | HTMLElement \| `() => HTMLElement` \| Selectors \| false | 'body' | 3.7.0 | |
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.
这应该是新的 feature 了吧?
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.
不算吧。这 API 本来就存在的,drawer 本来就支持的,,现在是全部都放出来了,,modal 的是跟 drawer 统一了。。不算新功能吧。。
@afc163 review |
🤔 This is a ...
👻 What's the background?
💡 Solution
📝 Changelog
2. 更新 drawer 和 modal 的 getContainer, 同时支持 HTMLElement |
() => HTMLElement
| Selectors | false, false 为渲染在当前 dom 里☑️ Self Check before Merge
View rendered components/drawer/index.en-US.md
View rendered components/drawer/index.zh-CN.md
View rendered components/modal/index.en-US.md
View rendered components/modal/index.zh-CN.md