ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
122 lines (121 loc) • 5.76 kB
TypeScript
import { ExtractPropTypes } from 'vue';
declare const AlertTypes: ["success", "info", "warning", "error"];
export declare type AlertType = typeof AlertTypes[number];
declare const alertProps: {
/**
* Type of Alert styles, options: `success`, `info`, `warning`, `error`
*/
type: import("vue-types").VueTypeDef<"error" | "success" | "info" | "warning">;
/** Whether Alert can be closed */
closable: import("vue-types").VueTypeValidableDef<boolean>;
/** Close text to show */
closeText: import("vue-types").VueTypeValidableDef<import("../_util/type").VueNode>;
/** Content of Alert */
message: import("vue-types").VueTypeValidableDef<import("../_util/type").VueNode>;
/** Additional content of Alert */
description: import("vue-types").VueTypeValidableDef<import("../_util/type").VueNode>;
/** Trigger when animation ending of Alert */
afterClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
default: (...args: any[]) => any;
} & {
default: (...args: any[]) => any;
};
/** Whether to show icon */
showIcon: import("vue-types").VueTypeValidableDef<boolean>;
prefixCls: import("vue-types").VueTypeValidableDef<string> & {
default: string;
};
banner: import("vue-types").VueTypeValidableDef<boolean>;
icon: import("vue-types").VueTypeValidableDef<import("../_util/type").VueNode>;
onClose: import("vue-types").VueTypeValidableDef<import("../_util/type").VueNode>;
};
export declare type AlertProps = Partial<ExtractPropTypes<typeof alertProps>>;
declare const _default: {
new (...args: any[]): {
$: import("vue").ComponentInternalInstance;
$data: {};
$props: Partial<{
prefixCls: string;
afterClose: (...args: any[]) => any;
}> & Omit<Readonly<{
prefixCls: string;
afterClose: (...args: any[]) => any;
} & {
icon?: import("../_util/type").VueNode;
description?: import("../_util/type").VueNode;
message?: import("../_util/type").VueNode;
type?: "error" | "success" | "info" | "warning";
closable?: boolean;
closeText?: import("../_util/type").VueNode;
showIcon?: boolean;
banner?: boolean;
onClose?: import("../_util/type").VueNode;
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefixCls" | "afterClose">;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
};
$slots: Readonly<{
[name: string]: import("vue").Slot;
}>;
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
$emit: (event: "close", ...args: any[]) => void;
$el: any;
$options: import("vue").ComponentOptionsBase<Readonly<{
prefixCls: string;
afterClose: (...args: any[]) => any;
} & {
icon?: import("../_util/type").VueNode;
description?: import("../_util/type").VueNode;
message?: import("../_util/type").VueNode;
type?: "error" | "success" | "info" | "warning";
closable?: boolean;
closeText?: import("../_util/type").VueNode;
showIcon?: boolean;
banner?: boolean;
onClose?: import("../_util/type").VueNode;
}>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], string, {
prefixCls: string;
afterClose: (...args: any[]) => any;
}>;
$forceUpdate: import("vue").ReactiveEffect<any>;
$nextTick: typeof import("vue").nextTick;
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
} & Readonly<{
prefixCls: string;
afterClose: (...args: any[]) => any;
} & {
icon?: import("../_util/type").VueNode;
description?: import("../_util/type").VueNode;
message?: import("../_util/type").VueNode;
type?: "error" | "success" | "info" | "warning";
closable?: boolean;
closeText?: import("../_util/type").VueNode;
showIcon?: boolean;
banner?: boolean;
onClose?: import("../_util/type").VueNode;
}> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<{
prefixCls: string;
afterClose: (...args: any[]) => any;
} & {
icon?: import("../_util/type").VueNode;
description?: import("../_util/type").VueNode;
message?: import("../_util/type").VueNode;
type?: "error" | "success" | "info" | "warning";
closable?: boolean;
closeText?: import("../_util/type").VueNode;
showIcon?: boolean;
banner?: boolean;
onClose?: import("../_util/type").VueNode;
}>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", {
prefixCls: string;
afterClose: (...args: any[]) => any;
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
export default _default;