dialog.d.ts 1.5 KB

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