import { ExtractPropTypes, PropType, VNode } from 'vue'; import { ButtonProps } from '../button'; import { DialogTypeEnum } from './constants'; export type DialogProps = ExtractPropTypes; export declare const DIALOG_PROPS: { /** * 弹框显示隐藏 */ visible: { type: BooleanConstructor; default: boolean; }; class: { type: StringConstructor; default: undefined; }; /** * 对话框标题 */ title: { type: StringConstructor; default: string; }; /** * 对话框内容 */ content: { type: PropType>; default: string; }; /** * 控制按钮 loading */ loading: { type: BooleanConstructor; default: boolean; }; /** * 是否支持全屏 */ scale: { type: BooleanConstructor; default: boolean; }; /** * 关闭按钮文字 */ cancelButtonText: { type: StringConstructor; default: string; }; /** * 关闭按钮 props */ cancelButtonProps: { type: PropType | undefined>; default: () => {}; }; /** * 隐藏取消按钮 */ hideCancelButton: { type: BooleanConstructor; default: boolean; }; /** * 确认按钮文字 */ confirmButtonText: { type: StringConstructor; default: string; }; /** * 确认按钮 props */ confirmButtonProps: { type: PropType | undefined>; default: () => {}; }; /** * 隐藏确认按钮 */ hideConfirmButton: { type: BooleanConstructor; default: boolean; }; /** * 是否显示关闭图标 */ closable: { type: BooleanConstructor; default: boolean; }; /** * 点击遮罩层是否关闭对话框 */ closeOnOverlayClick: { type: BooleanConstructor; default: boolean; }; /** * 是否显示遮罩层 */ showOverlay: { type: BooleanConstructor; default: boolean; }; /** * 主题 */ theme: { type: PropType<"success" | "warning" | "info" | "error">; default: string; }; /** * 关闭对话框是否销毁子元素 */ destroyOnClose: { type: BooleanConstructor; default: boolean; }; /** * 对话框宽度 */ width: { type: (StringConstructor | NumberConstructor)[]; default: number; }; /** * 对话框高度 */ height: { type: (StringConstructor | NumberConstructor)[]; default: undefined; }; /** * 是否需要行内样式 */ noInlineStyle: { type: BooleanConstructor; default: boolean; }; /** * 显示对话框图标 */ showIcon: { type: BooleanConstructor; default: boolean; }; /** * 显示底部 */ footer: { type: PropType[]>; default: boolean; }; /** * 底部按钮是否为文字按钮 */ textButton: { type: BooleanConstructor; default: boolean; }; /** * 弹框类型 */ type: { type: PropType<"confirm" | "alert">; default: DialogTypeEnum; }; /** * 确认事件 */ onConfirm: { type: PropType<() => void | Promise>; default: undefined; }; /** * 关闭事件 */ onClose: { type: PropType<() => void>; default: undefined; }; teleport: { type: PropType; default: string; }; clientType: PropType<"PC" | "MOBILE">; closeOnEsc: { type: BooleanConstructor; default: undefined; }; lockScroll: { type: BooleanConstructor; default: boolean; }; lazyRender: { type: BooleanConstructor; default: boolean; }; };