-
Notifications
You must be signed in to change notification settings - Fork 592
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
src/drawer/drawer-v2.jsx
Outdated
@@ -272,6 +272,11 @@ const Drawer = props => { | |||
setVisibleOverlayToParent(id, node); | |||
}; | |||
|
|||
const nstyle = { | |||
...{ width, height }, |
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.
这里直接展开就好了
@@ -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 | | |||
|
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.
给个默认值 false 吧,感觉明确点
No description provided.