-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathdrawer.d.ts
106 lines (90 loc) · 2.06 KB
/
drawer.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
export declare class Drawer extends AntdComponent {
/**
* Whether a close (x) button is visible on top right of the Drawer dialog or not.
* @default true
* @type boolean
*/
closable: boolean;
/**
* Whether to unmount child components on closing drawer or not.
* @default false
* @type boolean
*/
destroyOnClose: boolean;
/**
* Return the mounted node for Drawer.
* @default 'body'
* @type any
*/
getContainer: any;
/**
* Whether to show mask or not.
* @default true
* @type boolean
*/
mask: boolean;
/**
* Clicking on the mask (area outside the Drawer) to close the Drawer or not.
* @default true
* @type boolean
*/
maskClosable: boolean;
/**
* Style for Drawer's mask element.
* @default {}
* @type object
*/
maskStyle: object;
/**
* The title for Drawer.
* @type any (string | slot)
*/
title: any;
/**
* Whether the Drawer dialog is visible or not.
* @default false
* @type boolean
*/
visible: boolean;
/**
* The class name of the container of the Drawer dialog.
* @type string
*/
wrapClassName: string;
/**
* Width of the Drawer dialog.
* @default 256
* @type string | number
*/
width: string | number;
/**
* placement is top or bottom, height of the Drawer dialog.
* @type string | number
*/
height: string | number;
/**
* The class name of the container of the Drawer dialog.
* @type string
*/
className: string;
/**
* The z-index of the Drawer.
* @default 1000
* @type number
*/
zIndex: number;
/**
* The placement of the Drawer.
* @default 'right'
* @type string
*/
placement: "top" | "right" | "bottom" | "left";
/**
* Specify a callback that will be called when a user clicks mask, close button or Cancel button.
*/
close(): void;
}