UNPKG

element-plus

Version:

A Component Library for Vue 3

88 lines (87 loc) 3.25 kB
import type { Component } from 'vue'; /** * @description dialog-content component props */ export interface DialogContentProps { /** * @description whether to align the header and footer in center */ center?: boolean; /** * @description whether to align the dialog both horizontally and vertically */ alignCenter?: boolean; /** * @description custom close icon, default is Close */ closeIcon?: string | Component; /** * @description enable dragging feature for Dialog */ draggable?: boolean; /** * @description draggable Dialog can overflow the viewport */ overflow?: boolean; /** * @description whether the Dialog takes up full screen */ fullscreen?: boolean; /** * @description custom class names for header wrapper */ headerClass?: string; /** * @description custom class names for body wrapper */ bodyClass?: string; /** * @description custom class names for footer wrapper */ footerClass?: string; /** * @description whether to show a close button */ showClose?: boolean; /** * @description title of Dialog. Can also be passed with a named slot (see the following table) */ title?: string; /** * @description header's aria-level attribute */ ariaLevel?: string; } /** * @deprecated Removed after 3.0.0, Use `DialogContentProps` instead. */ export declare const dialogContentProps: { readonly center: BooleanConstructor; readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>; readonly closeIcon: { readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly draggable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>; readonly overflow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>; readonly fullscreen: BooleanConstructor; readonly headerClass: StringConstructor; readonly bodyClass: StringConstructor; readonly footerClass: StringConstructor; readonly showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>; readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>; readonly ariaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>; }; export declare const dialogContentEmits: { close: () => boolean; }; export declare const dialogContentPropsDefaults: { readonly alignCenter: undefined; readonly draggable: undefined; readonly overflow: undefined; readonly showClose: true; readonly title: ""; readonly ariaLevel: "2"; };