Browse Source

change api doc

pull/11234/head
jim 7 years ago
committed by 陈帅
parent
commit
42de00137f
  1. 10
      components/drawer/index.md

10
components/drawer/index.md

@ -11,15 +11,17 @@ subtitle: 抽屉
| --- | --- | --- | --- |
| className | 抽屉的类属性 | string | `drawer` |
| openClassName | 打开抽屉时的类属性 | string | `drawer-open`|
| wrapperClassName | 包装器的类属性 | string | null |
| mask | 是否展示遮罩 | Boolean | true |
| maskClosable | 点击蒙层是否允许关闭 | boolean | true |
| maskStyle | 遮罩样式 | object | {} |
| showIcon | 是否显示抽屉的 icon | boolean | true |
| icon | 抽屉的 icon | ReactNode | node |
| visible | 抽屉是否课件 | boolean | false |
| zIndex | 抽屉在当前堆叠上下文中的堆叠层级 | number | 999 |
| parent | 抽屉挂载的dom | string | `body` |
| visible | 抽屉是否可见 | boolean | false |
| getContainer | 指定 抽屉挂载节点 | (instance)=> HTMLElement | `body` |
| width | 抽屉的宽度 | string | `60vw` |
| placement | 抽屉的方向 | `left``right` | `left` |
| onChange | 面板状态改变事件 | (state:boolean)=>void | null |
| onIconClick | icon 点击事件 | (e:event)=>void | null
| destroyOnClose | 关闭时销毁 Drawer 里的子元素 | boolean | false |

Loading…
Cancel
Save