import type { RendererNode, RendererElement, ExtractPropTypes, PropType, VNode } from 'vue'; import type { MessagePlacement } from './interface'; import type { ComponentType, IconSlotType } from '../../../types'; export declare const Props: { /** 消息文本 */ readonly message: { readonly type: PropType>; readonly default: () => null; }; /** * 消息类型 * * @values default primary success danger warning * @default default */ readonly type: { readonly type: PropType; readonly default: "default"; }; /** 是否可关闭 */ readonly closable: BooleanConstructor; /** 显示时间,单位为毫秒。 设为 0 则不会自动关闭 */ readonly duration: { readonly type: NumberConstructor; readonly default: 2500; }; /** 是否为圆角类型 */ readonly round: BooleanConstructor; /** 消息 icon */ readonly icon: { readonly type: PropType; readonly default: () => null; }; /** 字体颜色 */ readonly color: StringConstructor; /** 自定义背景色 */ readonly background: StringConstructor; /** 偏移距离 */ readonly offset: { readonly type: NumberConstructor; readonly default: 20; }; /** * 位置 */ readonly placement: { readonly type: PropType; readonly default: "top"; }; /** 层级 */ readonly zIndex: NumberConstructor; /** 关闭按钮 */ readonly closeBtn: { readonly type: PropType; readonly default: () => null; }; /** 关闭回调 */ readonly onClose: { readonly type: PropType<(evt?: MouseEvent) => void>; readonly default: () => null; }; }; export type MessageProps = ExtractPropTypes;