t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
72 lines (71 loc) • 2.31 kB
TypeScript
import type { RendererNode, RendererElement, VNode, PropType, ExtractPropTypes } from 'vue';
import type { MessageType, MessagePlacementType } from './interface';
export declare const Props: {
readonly id: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly message: {
readonly type: PropType<string | VNode<RendererNode, RendererElement, {
[key: string]: any;
}>>;
readonly default: () => string;
readonly required: true;
};
readonly type: {
readonly type: PropType<MessageType>;
readonly default: () => MessageType;
readonly validator: (val: MessageType) => boolean;
};
readonly close: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly duration: {
readonly type: NumberConstructor;
readonly default: () => number;
};
readonly round: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly icon: {
readonly type: PropType<VNode<RendererNode, RendererElement, {
[key: string]: any;
}>>;
readonly default: () => null;
};
readonly color: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly background: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly offset: {
readonly type: NumberConstructor;
readonly default: () => number;
};
readonly placement: {
readonly type: PropType<MessagePlacementType>;
readonly default: () => MessagePlacementType;
readonly validator: (val: MessagePlacementType) => boolean;
};
readonly zIndex: {
readonly type: NumberConstructor;
readonly default: () => null;
};
readonly closeBtn: {
readonly type: PropType<string | VNode<RendererNode, RendererElement, {
[key: string]: any;
}>>;
readonly default: () => null;
};
readonly closeEnd: {
readonly type: FunctionConstructor;
readonly default: () => null;
};
};
export declare const Emits: string[];
export declare type MessagePropsType = ExtractPropTypes<typeof Props>;