element-plus
Version:
A Component Library for Vue 3
90 lines (89 loc) • 3.34 kB
TypeScript
import type { MessageProps } from './message';
declare function close(): void;
declare var __VLS_26: {};
type __VLS_Slots = {} & {
default?: (props: typeof __VLS_26) => any;
};
declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<MessageProps>, Pick<import("element-plus/es/utils").Mutable<{
readonly customClass: "";
readonly dangerouslyUseHTMLString: false;
readonly duration: 3000;
readonly icon: undefined;
readonly id: "";
readonly message: "";
readonly onClose: undefined;
readonly showClose: false;
readonly type: "info";
readonly plain: false;
readonly offset: 16;
readonly placement: undefined;
readonly zIndex: 0;
readonly grouping: false;
readonly repeatNum: 1;
readonly appendTo: HTMLElement;
}>, "zIndex" | "offset" | "icon" | "id" | "type" | "message" | "placement" | "onClose" | "showClose" | "duration" | "customClass" | "dangerouslyUseHTMLString" | "plain" | "grouping" | "repeatNum">>, {
visible: import("vue").Ref<boolean>;
bottom: import("vue").ComputedRef<number>;
close: typeof close;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
destroy: () => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<MessageProps>, Pick<import("element-plus/es/utils").Mutable<{
readonly customClass: "";
readonly dangerouslyUseHTMLString: false;
readonly duration: 3000;
readonly icon: undefined;
readonly id: "";
readonly message: "";
readonly onClose: undefined;
readonly showClose: false;
readonly type: "info";
readonly plain: false;
readonly offset: 16;
readonly placement: undefined;
readonly zIndex: 0;
readonly grouping: false;
readonly repeatNum: 1;
readonly appendTo: HTMLElement;
}>, "zIndex" | "offset" | "icon" | "id" | "type" | "message" | "placement" | "onClose" | "showClose" | "duration" | "customClass" | "dangerouslyUseHTMLString" | "plain" | "grouping" | "repeatNum">>>> & {
onDestroy?: (() => any) | undefined;
}, {
zIndex: number;
offset: number;
icon: string | import("vue").Component;
id: string;
type: import("./message").MessageType;
message: string | import("vue").VNode | (() => import("vue").VNode);
placement: import("./message").MessagePlacement;
onClose: () => void;
showClose: boolean;
duration: number;
customClass: string;
dangerouslyUseHTMLString: boolean;
plain: boolean;
grouping: boolean;
repeatNum: number;
}, {}>;
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_TypePropsToOption<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<Required<T>[K]>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaultsLocal<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};
type __VLS_PrettifyLocal<T> = {
[K in keyof T as K]: T[K];
} & {};