element-plus
Version:
> TODO: description
133 lines (132 loc) • 3.88 kB
TypeScript
import type { SFCWithInstall } from 'element-plus/es/utils/types';
declare const _Alert: SFCWithInstall<import("vue").DefineComponent<{
title: {
type: StringConstructor;
default: string;
};
description: {
type: StringConstructor;
default: string;
};
type: {
type: import("vue").PropType<"error" | "success" | "info" | "warning">;
default: string;
};
closable: {
type: BooleanConstructor;
default: boolean;
};
closeText: {
type: StringConstructor;
default: string;
};
showIcon: BooleanConstructor;
center: BooleanConstructor;
effect: {
type: StringConstructor;
default: string;
validator: (value: string) => boolean;
};
}, {
visible: import("vue").Ref<boolean>;
typeClass: import("vue").ComputedRef<string>;
iconClass: import("vue").ComputedRef<any>;
isBigIcon: import("vue").ComputedRef<"" | "is-big">;
isBoldTitle: import("vue").ComputedRef<"" | "is-bold">;
close: (evt: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
title?: unknown;
description?: unknown;
type?: unknown;
closable?: unknown;
closeText?: unknown;
showIcon?: unknown;
center?: unknown;
effect?: unknown;
} & {
description: string;
title: string;
type: "error" | "success" | "info" | "warning";
closable: boolean;
closeText: string;
showIcon: boolean;
center: boolean;
effect: string;
} & {}> & {
onClose?: (...args: any[]) => any;
}, {
description: string;
title: string;
type: "error" | "success" | "info" | "warning";
closable: boolean;
closeText: string;
showIcon: boolean;
center: boolean;
effect: string;
}>>;
export default _Alert;
export declare const ElAlert: SFCWithInstall<import("vue").DefineComponent<{
title: {
type: StringConstructor;
default: string;
};
description: {
type: StringConstructor;
default: string;
};
type: {
type: import("vue").PropType<"error" | "success" | "info" | "warning">;
default: string;
};
closable: {
type: BooleanConstructor;
default: boolean;
};
closeText: {
type: StringConstructor;
default: string;
};
showIcon: BooleanConstructor;
center: BooleanConstructor;
effect: {
type: StringConstructor;
default: string;
validator: (value: string) => boolean;
};
}, {
visible: import("vue").Ref<boolean>;
typeClass: import("vue").ComputedRef<string>;
iconClass: import("vue").ComputedRef<any>;
isBigIcon: import("vue").ComputedRef<"" | "is-big">;
isBoldTitle: import("vue").ComputedRef<"" | "is-bold">;
close: (evt: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
title?: unknown;
description?: unknown;
type?: unknown;
closable?: unknown;
closeText?: unknown;
showIcon?: unknown;
center?: unknown;
effect?: unknown;
} & {
description: string;
title: string;
type: "error" | "success" | "info" | "warning";
closable: boolean;
closeText: string;
showIcon: boolean;
center: boolean;
effect: string;
} & {}> & {
onClose?: (...args: any[]) => any;
}, {
description: string;
title: string;
type: "error" | "success" | "info" | "warning";
closable: boolean;
closeText: string;
showIcon: boolean;
center: boolean;
effect: string;
}>>;