@arco-design/web-vue
Version:
Arco Design Vue 2.0: A Vue.js 3 UI Library
216 lines (215 loc) • 7.42 kB
TypeScript
import type { App } from 'vue';
import type { ArcoOptions } from '../_utils/types';
import _Alert from './alert';
declare const Alert: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
type: {
type: import("vue").PropType<"error" | "normal" | "success" | "warning" | "info">;
default: string;
};
showIcon: {
type: BooleanConstructor;
default: boolean;
};
closable: {
type: BooleanConstructor;
default: boolean;
};
title: StringConstructor;
banner: {
type: BooleanConstructor;
default: boolean;
};
center: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
onClose?: ((ev: MouseEvent) => any) | undefined;
onAfterClose?: (() => any) | undefined;
}>, {
prefixCls: string;
cls: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
visible: import("vue").Ref<boolean, boolean>;
handleClose: (ev: MouseEvent) => void;
handleAfterLeave: () => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
close: (ev: MouseEvent) => true;
afterClose: () => true;
}, import("vue").PublicProps, {
type: "error" | "normal" | "success" | "warning" | "info";
closable: boolean;
center: boolean;
showIcon: boolean;
banner: boolean;
}, true, {}, {}, {
IconHover: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
prefix: {
type: StringConstructor;
};
size: {
type: import("vue").PropType<"mini" | "small" | "medium" | "large">;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>, {
prefixCls: string;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
prefix: {
type: StringConstructor;
};
size: {
type: import("vue").PropType<"mini" | "small" | "medium" | "large">;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{}>, {
size: "mini" | "small" | "medium" | "large";
disabled: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
IconClose: any;
IconInfoCircleFill: any;
IconCheckCircleFill: any;
IconExclamationCircleFill: any;
IconCloseCircleFill: any;
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
type: {
type: import("vue").PropType<"error" | "normal" | "success" | "warning" | "info">;
default: string;
};
showIcon: {
type: BooleanConstructor;
default: boolean;
};
closable: {
type: BooleanConstructor;
default: boolean;
};
title: StringConstructor;
banner: {
type: BooleanConstructor;
default: boolean;
};
center: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
onClose?: ((ev: MouseEvent) => any) | undefined;
onAfterClose?: (() => any) | undefined;
}>, {
prefixCls: string;
cls: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
visible: import("vue").Ref<boolean, boolean>;
handleClose: (ev: MouseEvent) => void;
handleAfterLeave: () => void;
}, {}, {}, {}, {
type: "error" | "normal" | "success" | "warning" | "info";
closable: boolean;
center: boolean;
showIcon: boolean;
banner: boolean;
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
type: {
type: import("vue").PropType<"error" | "normal" | "success" | "warning" | "info">;
default: string;
};
showIcon: {
type: BooleanConstructor;
default: boolean;
};
closable: {
type: BooleanConstructor;
default: boolean;
};
title: StringConstructor;
banner: {
type: BooleanConstructor;
default: boolean;
};
center: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
onClose?: ((ev: MouseEvent) => any) | undefined;
onAfterClose?: (() => any) | undefined;
}>, {
prefixCls: string;
cls: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
visible: import("vue").Ref<boolean, boolean>;
handleClose: (ev: MouseEvent) => void;
handleAfterLeave: () => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
close: (ev: MouseEvent) => true;
afterClose: () => true;
}, string, {
type: "error" | "normal" | "success" | "warning" | "info";
closable: boolean;
center: boolean;
showIcon: boolean;
banner: boolean;
}, {}, string, {}, {
IconHover: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
prefix: {
type: StringConstructor;
};
size: {
type: import("vue").PropType<"mini" | "small" | "medium" | "large">;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>, {
prefixCls: string;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
prefix: {
type: StringConstructor;
};
size: {
type: import("vue").PropType<"mini" | "small" | "medium" | "large">;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{}>, {
size: "mini" | "small" | "medium" | "large";
disabled: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
IconClose: any;
IconInfoCircleFill: any;
IconCheckCircleFill: any;
IconExclamationCircleFill: any;
IconCloseCircleFill: any;
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
install: (app: App, options?: ArcoOptions | undefined) => void;
};
export declare type AlertInstance = InstanceType<typeof _Alert>;
export default Alert;