comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
33 lines (31 loc) • 965 B
TypeScript
import { PropType, VNode, Component } from 'vue';
import { ComicType2 } from '../../../../utils';
export declare const messageProps: {
id: StringConstructor;
close: FunctionConstructor;
destroy: FunctionConstructor;
type: PropType<ComicType2>;
content: PropType<string | VNode>;
icon: PropType<Component>;
color: StringConstructor;
showClose: BooleanConstructor;
duration: {
readonly type: NumberConstructor;
readonly default: 3000;
};
showIcon: {
readonly type: BooleanConstructor;
readonly default: true;
};
isVNode: BooleanConstructor;
};
export type MessageOptions = {
readonly type?: 'primary' | 'success' | 'warning' | 'info' | 'error';
readonly content?: string | VNode;
readonly icon?: Component;
readonly color?: string;
readonly showClose?: boolean;
readonly duration?: number;
readonly showIcon?: boolean;
readonly isVNode?: boolean;
};