mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
remove top and bottom less
This commit is contained in:
parent
8c3386f00c
commit
de5b89a612
@ -7,7 +7,7 @@ title:
|
||||
|
||||
## zh-CN
|
||||
|
||||
第一个抽屉
|
||||
第一个抽屉。
|
||||
|
||||
## en-US
|
||||
|
||||
|
@ -28,5 +28,3 @@ Drawer container
|
||||
| zIndex | The `z-index` of the Drawer | Number | 1000 |
|
||||
| placement | The direction of the Drawer | 'left' | 'right' | 'left'
|
||||
| onClose | Specify a function that will be called when a user clicks mask, close button on top right or Cancel button | function(e) | - |
|
||||
|
||||
|
||||
|
@ -113,7 +113,7 @@ export default class Drawer extends React.Component<
|
||||
showMask={this.props.mask}
|
||||
placement={this.props.placement}
|
||||
>
|
||||
{this.renderBody()}
|
||||
{this.renderBody()}
|
||||
</RcDrawer>
|
||||
);
|
||||
}
|
||||
|
@ -28,5 +28,3 @@ title: Drawer
|
||||
| zIndex | 设置 Drawer 的 `z-index` | Number | 1000 |
|
||||
| placement | 抽屉的方向 | 'left' | 'right' | 'left'
|
||||
| onClose | 点击遮罩层或右上角叉或取消按钮的回调 | function(e) | 无 |
|
||||
|
||||
|
||||
|
@ -42,36 +42,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
&-top,
|
||||
&-bottom {
|
||||
.@{dawer-prefix-cls}-content-wrapper,
|
||||
.@{dawer-prefix-cls}-content {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
&-top {
|
||||
&.@{dawer-prefix-cls}-open {
|
||||
.@{dawer-prefix-cls} {
|
||||
&-wrapper {
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-bottom {
|
||||
.@{dawer-prefix-cls} {
|
||||
&-content-wrapper {
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
&.@{dawer-prefix-cls}-open {
|
||||
.@{dawer-prefix-cls} {
|
||||
&-wrapper {
|
||||
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.@{dawer-prefix-cls}-open {
|
||||
> * {
|
||||
pointer-events: auto;
|
||||
@ -187,9 +157,4 @@
|
||||
width: auto !important;
|
||||
margin: 10px;
|
||||
}
|
||||
.vertical-center-modal {
|
||||
.@{dawer-prefix-cls} {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user