import { CSSProperties } from 'vue'; import { Mutable, IntrinsicAttributes } from 'yc-pro-components/es/types'; import { DialogProps } from 'element-plus'; export interface PlusDialogSelfProps { modelValue?: boolean; confirmText?: string; cancelText?: string; confirmLoading?: boolean; hasFooter?: boolean; footerAlign?: 'left' | 'right' | 'center'; top?: string; width?: string | number; title?: string; /** Dialog 面板样式(应用于 .el-dialog 元素,支持 CSS 变量) */ dialogStyle?: CSSProperties | Record; } export type PlusDialogProps = PlusDialogSelfProps & Partial & IntrinsicAttributes>; export interface PlusDialogEmits { (e: 'update:modelValue', visible: boolean): void; (e: 'cancel'): void; (e: 'confirm'): void; }