Drawer
Props
| Prop Name | Type | Required | Default | Description |
|---|---|---|---|---|
| visible | bool | false | 是否显示,controlled | |
| mask | bool | true | 是否有遮罩 | |
| maskClosable | bool | true | 是否可以点击遮罩关闭 | |
| keyboard | bool | false | 是否可以esc关闭 | |
| onClose | func | () => {} | 点击关闭按钮、遮罩进行关闭时的回调 | |
| destroyOnClose | bool | 关闭后是否自动销毁 | ||
| placement | enum | 'right' | 弹出位置 | |
| width | union | 抽屉的宽度,left right可用 | ||
| height | union | 抽屉的高度,top bottom可用 | ||
| getContainer | func | 设置抽屉容器 | ||
| zIndex | number | 1010 | 弹出层的z-index | |
| closeHandler | union | 传入 false/null 隐藏关闭控件,或自定义控件 |
说明
这是 Drawer 抽屉组件




