remove top and bottom less

This commit is contained in:
jim 2018-05-23 15:52:49 +08:00 committed by 陈帅
parent 8c3386f00c
commit de5b89a612
5 changed files with 2 additions and 41 deletions

View File

@ -7,7 +7,7 @@ title:
## zh-CN
第一个抽屉
第一个抽屉
## en-US

View File

@ -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) | - |

View File

@ -113,7 +113,7 @@ export default class Drawer extends React.Component<
showMask={this.props.mask}
placement={this.props.placement}
>
{this.renderBody()}
{this.renderBody()}
</RcDrawer>
);
}

View File

@ -28,5 +28,3 @@ title: Drawer
| zIndex | 设置 Drawer 的 `z-index` | Number | 1000 |
| placement | 抽屉的方向 | 'left' | 'right' | 'left'
| onClose | 点击遮罩层或右上角叉或取消按钮的回调 | function(e) | 无 |

View File

@ -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;
}
}
}