1 | import { VNode } from 'vue'
|
2 | import { ElementUIComponent } from './component'
|
3 |
|
4 | export interface DialogSlots {
|
5 | /** Content of the Dialog */
|
6 | default: VNode[],
|
7 |
|
8 | /** Content of the Dialog title */
|
9 | title: VNode[],
|
10 |
|
11 | /** Content of the Dialog footer */
|
12 | footer: VNode[],
|
13 |
|
14 | [key: string]: VNode[]
|
15 | }
|
16 |
|
17 | /** Informs users while preserving the current page state */
|
18 | export declare class ElDialog extends ElementUIComponent {
|
19 | /** Title of Dialog */
|
20 | title: string
|
21 |
|
22 | /** Width of Dialog */
|
23 | width: string
|
24 |
|
25 | /** Whether the Dialog takes up full screen */
|
26 | fullscreen: boolean
|
27 |
|
28 | /** Value for margin-top of Dialog CSS */
|
29 | top: string
|
30 |
|
31 | /** Whether a mask is displayed */
|
32 | modal: boolean
|
33 |
|
34 | /** Whether to append modal to body element. If false, the modal will be appended to Dialog's parent element */
|
35 | modalAppendToBody: boolean
|
36 |
|
37 | /** Whether scroll of body is disabled while Dialog is displayed */
|
38 | lockScroll: boolean
|
39 |
|
40 | /** Custom class names for Dialog */
|
41 | customClass: string
|
42 |
|
43 | /** Whether the Dialog can be closed by clicking the mask */
|
44 | closeOnClickModal: boolean
|
45 |
|
46 | /** Whether the Dialog can be closed by pressing ESC */
|
47 | closeOnPressEscape: boolean
|
48 |
|
49 | /** Whether to show a close button */
|
50 | showClose: boolean
|
51 |
|
52 | /** Callback before Dialog closes, and it will prevent Dialog from closing */
|
53 | beforeClose: (done: Function) => void
|
54 |
|
55 | /** Whether to align the header and footer in center */
|
56 | center: boolean
|
57 |
|
58 | $slots: DialogSlots
|
59 | }
|