add open animation

This commit is contained in:
jim 2018-05-23 18:23:07 +08:00 committed by 陈帅
parent 86655c0ebc
commit fee00e3841
2 changed files with 6 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export default class Drawer extends React.Component<
<div style={containerStyle} >
{header}
{closer}
<div className={`${prefixCls}-body`} style={this.props.style}>{this.props.children}</div>;
<div className={`${prefixCls}-body`} style={this.props.style}>{this.props.children}</div>
</div >
);
}

View File

@ -1,4 +1,5 @@
@dawer-prefix-cls: ~"@{ant-prefix}-drawer";
@ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
.@{dawer-prefix-cls} {
position: fixed;
@ -7,6 +8,10 @@
height: 100%;
pointer-events: none;
>* {
transition: all .3s @ease-in-out-circ;
}
&-content-wrapper {
position: absolute;
z-index: @zindex-modal-mask + 1;