Skip to content
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(Drawer): default props not working #39782

Merged
merged 3 commits into from Dec 26, 2022
Merged

fix(Drawer): default props not working #39782

merged 3 commits into from Dec 26, 2022

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Dec 24, 2022

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

close #39711
close #39777

💡 Background and solution

具体改动见:react-component/drawer#370

<Drawer open={undefined} placement={undefined} /> 会覆盖 default props,不等效于 <Drawer />

虽然 semver 会自动更新,但 dist 文件还是有问题,semver 也有可能安装到 6.1.0。这里强制升级上来。

📝 Changelog

Language Changelog
🇺🇸 English Fix Drawer default props not working when placement open width are undefined.
🇨🇳 Chinese 修复 Drawer placement open width 等参数为 undefined 时默认值不生效的问题。

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@github-actions
Copy link
Contributor

github-actions bot commented Dec 24, 2022

@@ -25,6 +25,7 @@ const DEPRECIATED_VERSION = {
'4.24.0': ['https://github.com/ant-design/ant-design/issues/38371'],
'5.0.4': ['https://github.com/ant-design/ant-design/issues/39284'],
'5.0.6': [],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.0.6 这里缺 issue 链接。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我记得是没有 issue 相关,应该是 rc-tour 错版的问题,打个注释吧

@github-actions
Copy link
Contributor

github-actions bot commented Dec 24, 2022

size-limit report 📦

Path Size
./dist/antd.min.js 367.37 KB
./dist/antd-with-locales.min.js 422.46 KB

@codecov
Copy link

codecov bot commented Dec 24, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (b9d3e92) compared to base (951e0e2).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #39782   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          557       557           
  Lines         9625      9625           
  Branches      2722      2722           
=========================================
  Hits          9625      9625           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -25,6 +25,7 @@ const DEPRECIATED_VERSION = {
'4.24.0': ['https://github.com/ant-design/ant-design/issues/38371'],
'5.0.4': ['https://github.com/ant-design/ant-design/issues/39284'],
'5.0.6': [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我记得是没有 issue 相关,应该是 rc-tour 错版的问题,打个注释吧

scripts/post-script.js Outdated Show resolved Hide resolved
@afc163
Copy link
Member Author

afc163 commented Dec 26, 2022

图片

间隙性异常。

@afc163 afc163 mentioned this pull request Dec 26, 2022
@@ -24,7 +24,8 @@ const DEPRECIATED_VERSION = {
],
'4.24.0': ['https://github.com/ant-design/ant-design/issues/38371'],
'5.0.4': ['https://github.com/ant-design/ant-design/issues/39284'],
'5.0.6': [],
'5.0.6': [], // Issue with @rc-components/tour v1.0.3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以建一个,说清楚问题。

scripts/post-script.js Outdated Show resolved Hide resolved
@afc163 afc163 merged commit b80a70f into master Dec 26, 2022
@afc163 afc163 deleted the fix/Drawer-defaultProps branch December 26, 2022 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drawer component is broken in 5.1.0 Drawer组件无法关闭
3 participants