mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Optimize code and documentation
This commit is contained in:
parent
1f3d6584ff
commit
9e12476f68
@ -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>
|
||||
|
@ -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 |
|
||||
|
@ -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)";
|
||||
|
Loading…
Reference in New Issue
Block a user