import { PropType } from "vue"; import { ElementSizes, MessageTriggerTypes, ElementTypes, Transition } from '../../../typings'; export declare const SMsgBoxProps: { /** * @description 消息框的类型 */ readonly type: PropType; /** * @description 消息框图标 */ readonly icon: StringConstructor; /** * @description 消息框图标的颜色 */ readonly iconColor: StringConstructor; /** * @description 消息头的标题 */ readonly title: { readonly type: StringConstructor; readonly default: "default title"; }; /** * @description 消息体的文本 */ readonly text: StringConstructor; /** * @description 消息框的过渡动画 */ readonly transition: { readonly type: PropType; readonly default: "s-transition-fadeDown"; }; /** * @description 是否可以通过按下ESC来关闭消息框 */ readonly closeOnPressEscape: { readonly type: BooleanConstructor; readonly default: true; }; /** * @description 消息框是否可以被拖动 */ readonly draggable: BooleanConstructor; /** * @description 消息框距离浏览器视口顶部的距离 */ readonly top: { readonly type: StringConstructor; }; /** * @description 是否去除消息头 */ readonly noHeader: BooleanConstructor; /** * @description 是否去除消息体 */ readonly noBody: BooleanConstructor; /** * @description 是否去除消息尾 */ readonly noFooter: BooleanConstructor; /** * @description 是否显示消息头中的关闭图标 */ readonly showCloseIcon: BooleanConstructor; /** * @description 消息尾中取消按钮的文本 */ readonly cancelBtnText: { readonly type: StringConstructor; readonly default: "取消"; }; /** * @description 消息尾中确认按钮的文本 */ readonly confirmBtnText: { readonly type: StringConstructor; readonly default: "确认"; }; /** * @description 消息尾中按钮的大小 */ readonly btnSize: { readonly type: PropType; readonly default: "small"; }; /** * @description 消息框关闭事件前的回调函数,若设置此项, 需要手动调用done函数关闭消息框 */ readonly beforeClose: PropType<(done: () => void) => void>; }; export declare const SMsgBoxEmits: { /** * @description 消息框关闭时触发 */ readonly close: (trigger: MessageTriggerTypes) => boolean; /** * @description 消息框关闭后触发 */ readonly closed: () => boolean; /** * @description 消息框打开触发 */ readonly open: () => boolean; /** * @description 消息框打开后触发 */ readonly opened: () => boolean; /** * @description 按下消息尾中的取消按钮后触发 */ readonly cancel: () => boolean; /** * @description 按下消息尾中的确认按钮后触发 */ readonly confirm: () => boolean; readonly hidden: () => boolean; };