-
-
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: Image support getPopupContainer #26713
Conversation
Note: dependent on react-component/image#29 |
After this suggestion: react-component/image#29 (comment) The build fails because of this type conflict:
Which do you suggest? (1) [ant-design] https://share.getcloudapp.com/z8uZN4Nr or (2) [react-component/Image] https://share.getcloudapp.com/Blu5rYgv |
Codecov Report
@@ Coverage Diff @@
## feature #26713 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 388 388
Lines 7396 7396
Branches 2072 2072
=========================================
Hits 7396 7396 Continue to review full report at Codecov.
|
I don't find |
Also need update doc. |
/rebase |
@zombieJ Thanks for reviews. The build is failing because of the type conflict here: #26713 (comment) Do you have a suggestion for how to handle before rebasing? |
You can ref https://ant.design/components/modal-cn/#header. Preview use |
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.
@zombieJ These suggested changes will fix the type conflict so that the build will pass.
I was following the patterns here which somehow passes the type check:
ant-design/components/modal/Modal.tsx
Line 130 in 006abe5
const { getPopupContainer: getContextPopupContainer, getPrefixCls, direction } = React.useContext( |
ant-design/components/modal/Modal.tsx
Line 198 in 006abe5
getContainer={getContainer === undefined ? getContextPopupContainer : getContainer} |
CI failed |
We should move this into |
Ignore getContextPopupContainer
Ignore getContextPopupContainer
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ea9857b:
|
wait for react-component/image#34 |
You have to upgrade rc-image to 4.0.0 |
Please fill changelog part in PR. |
You could leave chinese changelog to us. 😹 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
Add getPreviewContainer to Image Preview
rc-image PR react-component/image#29
📝 Changelog
getContainer
to Image preview propertypreview.getContainer
属性用于指定预览对话框的容器。☑️ Self Check before Merge