Optimize code and documentation

This commit is contained in:
qixian.cs@outlook.com 2018-06-07 16:59:04 +08:00 committed by 陈帅
parent 1f3d6584ff
commit 9e12476f68
3 changed files with 3 additions and 5 deletions

View File

@ -137,8 +137,7 @@ export default class Drawer extends React.Component<
onMaskClick={this.close}
showMask={this.props.mask}
placement={this.props.placement}
style={{ zIndex: zIndex }}
style={{ zIndex }}
>
{this.renderBody()}
</RcDrawer>

View File

@ -25,8 +25,8 @@ title: Drawer
| mask | 是否展示遮罩 | Boolean | true |
| maskStyle | 遮罩样式 | object | {} |
| style | 可用于设置 Drawer 的样式,调整浮层位置等 | object | - |
| title | 标题 | string \| ReactNode | |
| visible | Drawer 是否可见 | boolean | |
| title | 标题 | string \| ReactNode | - |
| visible | Drawer 是否可见 | boolean | - |
| width | 宽度 | string \| number | 256 |
| wrapClassName | 对话框外层容器的类名 | string | - |
| zIndex | 设置 Drawer 的 `z-index` | Number | 1000 |

View File

@ -145,7 +145,6 @@
left: 0;
bottom: 0;
display: none;
background-color: #373737;
background-color: @modal-mask-bg; // lesshint duplicateProperty: false
height: 100%;
filter: ~"alpha(opacity=50)";