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

feat(Dialog): new api noPadding for Dialog body padding fix #3892 #3893

Merged
merged 4 commits into from
May 30, 2022

Conversation

bindoon
Copy link
Member

@bindoon bindoon commented May 12, 2022

No description provided.

@codecov
Copy link

codecov bot commented May 12, 2022

Codecov Report

Merging #3893 (f64f5e8) into feat/1.26 (9155964) will not change coverage.
The diff coverage is 100.00%.

❗ Current head f64f5e8 differs from pull request most recent head 67564b4. Consider uploading reports for the commit 67564b4 to get more accurate results

@@             Coverage Diff             @@
##           feat/1.26    #3893    +/-   ##
===========================================
  Coverage      90.40%   90.40%            
===========================================
  Files            305      305            
  Lines          17899    17899            
  Branches        5394     5507   +113     
===========================================
  Hits           16182    16182            
  Misses          1696     1696            
  Partials          21       21            
Impacted Files Coverage Δ
src/dialog/dialog.jsx 93.20% <ø> (ø)
src/dialog/inner.jsx 73.68% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e421fe2...67564b4. Read the comment docs.

@bindoon bindoon requested a review from lakerswgq May 12, 2022 08:01
@@ -272,6 +272,11 @@ const Drawer = props => {
setVisibleOverlayToParent(id, node);
};

const nstyle = {
...{ width, height },
Copy link
Contributor

Choose a reason for hiding this comment

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

这里直接展开就好了

@@ -68,6 +68,7 @@ API变化:
| isFullScreen | [v2废弃] 是否撑开页面。 v2 改用 overflowScroll | Boolean | false | |
| shouldUpdatePosition | [v2废弃] 是否在对话框重新渲染时及时更新对话框位置,一般用于对话框高度变化后依然能保证原来的对齐方式 | Boolean | false | |
| minMargin | [v2废弃] 对话框距离浏览器顶部和底部的最小间距,align 被设置为 'cc cc' 并且 isFullScreen 被设置为 true 时不生效 | Number | 40 | |
| noPadding | 去除body内间距 | Boolean | - | 1.26 |

Copy link
Contributor

Choose a reason for hiding this comment

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

给个默认值 false 吧,感觉明确点

@bindoon bindoon merged commit ffb274f into alibaba-fusion:feat/1.26 May 30, 2022
@bindoon bindoon deleted the feat/1.26 branch May 30, 2022 10:21
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.

2 participants