comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
37 lines (35 loc) • 1.16 kB
TypeScript
import { Component, PropType, VNode } from 'vue';
import { ComicType2 } from '../../../../utils';
export declare const noticeProps: {
readonly position: {
readonly type: PropType<"lt" | "lb" | "rt" | "rb">;
readonly default: "rt";
};
readonly type: PropType<ComicType2>;
readonly title: StringConstructor;
readonly content: PropType<string | VNode>;
readonly icon: PropType<Component>;
readonly color: StringConstructor;
readonly showClose: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly duration: {
readonly type: NumberConstructor;
readonly default: 3000;
};
readonly isVNode: BooleanConstructor;
readonly click: FunctionConstructor;
};
export type NoticeOptions = {
readonly position?: 'lt' | 'lb' | 'rt' | 'rb';
readonly type?: ComicType2;
readonly title?: string;
readonly content?: string | VNode;
readonly icon?: Component;
readonly color?: string;
readonly showClose?: boolean;
readonly duration?: number;
readonly isVNode?: boolean;
readonly click?: (close: () => void) => void;
};