|
1 | 1 | ## API |
2 | 2 |
|
3 | | -| Property | Description | Type | Default | |
4 | | -| --- | --- | --- | --- | |
5 | | -| closable | Whether a close (x) button is visible on top right of the Drawer dialog or not. | boolean | true | |
6 | | -| destroyOnClose | Whether to unmount child components on closing drawer or not. | boolean | false | |
7 | | -| getContainer | Return the mounted node for Drawer. | HTMLElement \| `() => HTMLElement` \| Selectors | 'body' | |
8 | | -| mask | Whether to show mask or not. | Boolean | true | |
9 | | -| maskClosable | Clicking on the mask (area outside the Drawer) to close the Drawer or not. | boolean | true | |
10 | | -| maskStyle | Style for Drawer's mask element. | object | {} | |
11 | | -| title | The title for Drawer. | string\|slot | - | |
12 | | -| visible | Whether the Drawer dialog is visible or not. | boolean | false | |
13 | | -| wrapClassName | The class name of the container of the Drawer dialog. | string | - | |
14 | | -| wrapStyle | The style of the container of the Drawer dialog. | object | - | |
15 | | -| bodyStyle | Style of floating layer, typically used for adjusting its position. | object | - | |
16 | | -| width | Width of the Drawer dialog. | string\|number | 256 | |
17 | | -| height | placement is `top` or `bottom`, height of the Drawer dialog. | string\|number | - | |
18 | | -| zIndex | The `z-index` of the Drawer. | Number | 1000 | |
19 | | -| placement | The placement of the Drawer. | 'top' \| 'right' \| 'bottom' \| 'left' | 'right' | |
20 | | -| handle | After setting, the drawer is directly mounted on the DOM, and you can control the drawer to open or close through this `handle`. | VNode \| slot | - | |
| 3 | +| Property | Description | Type | Default | Version | |
| 4 | +| --- | --- | --- | --- | --- | |
| 5 | +| closable | Whether a close (x) button is visible on top right of the Drawer dialog or not. | boolean | true | | |
| 6 | +| destroyOnClose | Whether to unmount child components on closing drawer or not. | boolean | false | | |
| 7 | +| getContainer | Return the mounted node for Drawer. | HTMLElement \| `() => HTMLElement` \| Selectors | 'body' | | |
| 8 | +| mask | Whether to show mask or not. | Boolean | true | | |
| 9 | +| maskClosable | Clicking on the mask (area outside the Drawer) to close the Drawer or not. | boolean | true | | |
| 10 | +| maskStyle | Style for Drawer's mask element. | object | {} | | |
| 11 | +| title | The title for Drawer. | string\|slot | - | | |
| 12 | +| visible | Whether the Drawer dialog is visible or not. | boolean | false | | |
| 13 | +| wrapClassName | The class name of the container of the Drawer dialog. | string | - | | |
| 14 | +| wrapStyle | Style of wrapper element which **contains mask** compare to `drawerStyle` | object | - | | |
| 15 | +| drawerStyle | Style of the popup layer element | object | - | 1.4.11 | |
| 16 | +| bodyStyle | Style of the drawer content part | object | - | | |
| 17 | +| width | Width of the Drawer dialog. | string\|number | 256 | | |
| 18 | +| height | placement is `top` or `bottom`, height of the Drawer dialog. | string\|number | - | | |
| 19 | +| zIndex | The `z-index` of the Drawer. | Number | 1000 | | |
| 20 | +| placement | The placement of the Drawer. | 'top' \| 'right' \| 'bottom' \| 'left' | 'right' | | |
| 21 | +| handle | After setting, the drawer is directly mounted on the DOM, and you can control the drawer to open or close through this `handle`. | VNode \| slot | - | | |
21 | 22 |
|
22 | 23 | ## Methods |
23 | 24 |
|
24 | | -| Name | Description | Type | Default | |
25 | | -| --- | --- | --- | --- | |
26 | | -| close | Specify a callback that will be called when a user clicks mask, close button or Cancel button. | function(e) | - | |
| 25 | +| Name | Description | Type | Default | Version | |
| 26 | +| --- | --- | --- | --- | --- | |
| 27 | +| close | Specify a callback that will be called when a user clicks mask, close button or Cancel button. | function(e) | - | | |
0 commit comments