| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- import type { ExtractPropTypes, PropType } from 'vue';
- import type { NodeMouseEventHandler } from '../vc-tree/contextTypes';
- declare const AlertTypes: ["success", "info", "warning", "error"];
- export type AlertType = (typeof AlertTypes)[number];
- export declare const alertProps: () => {
- /**
- * Type of Alert styles, options: `success`, `info`, `warning`, `error`
- */
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
- /** Whether Alert can be closed */
- closable: {
- type: BooleanConstructor;
- default: any;
- };
- /** Close text to show */
- closeText: import("vue-types").VueTypeValidableDef<any>;
- /** Content of Alert */
- message: import("vue-types").VueTypeValidableDef<any>;
- /** Additional content of Alert */
- description: import("vue-types").VueTypeValidableDef<any>;
- /** Trigger when animation ending of Alert */
- afterClose: PropType<() => void>;
- /** Whether to show icon */
- showIcon: {
- type: BooleanConstructor;
- default: any;
- };
- prefixCls: StringConstructor;
- banner: {
- type: BooleanConstructor;
- default: any;
- };
- icon: import("vue-types").VueTypeValidableDef<any>;
- closeIcon: import("vue-types").VueTypeValidableDef<any>;
- onClose: PropType<NodeMouseEventHandler>;
- };
- export type AlertProps = Partial<ExtractPropTypes<ReturnType<typeof alertProps>>>;
- declare const _default: {
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
- /**
- * Type of Alert styles, options: `success`, `info`, `warning`, `error`
- */
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
- /** Whether Alert can be closed */
- closable: {
- type: BooleanConstructor;
- default: any;
- };
- /** Close text to show */
- closeText: import("vue-types").VueTypeValidableDef<any>;
- /** Content of Alert */
- message: import("vue-types").VueTypeValidableDef<any>;
- /** Additional content of Alert */
- description: import("vue-types").VueTypeValidableDef<any>;
- /** Trigger when animation ending of Alert */
- afterClose: PropType<() => void>;
- /** Whether to show icon */
- showIcon: {
- type: BooleanConstructor;
- default: any;
- };
- prefixCls: StringConstructor;
- banner: {
- type: BooleanConstructor;
- default: any;
- };
- icon: import("vue-types").VueTypeValidableDef<any>;
- closeIcon: import("vue-types").VueTypeValidableDef<any>;
- onClose: PropType<NodeMouseEventHandler>;
- }>>, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
- /**
- * Type of Alert styles, options: `success`, `info`, `warning`, `error`
- */
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
- /** Whether Alert can be closed */
- closable: {
- type: BooleanConstructor;
- default: any;
- };
- /** Close text to show */
- closeText: import("vue-types").VueTypeValidableDef<any>;
- /** Content of Alert */
- message: import("vue-types").VueTypeValidableDef<any>;
- /** Additional content of Alert */
- description: import("vue-types").VueTypeValidableDef<any>;
- /** Trigger when animation ending of Alert */
- afterClose: PropType<() => void>;
- /** Whether to show icon */
- showIcon: {
- type: BooleanConstructor;
- default: any;
- };
- prefixCls: StringConstructor;
- banner: {
- type: BooleanConstructor;
- default: any;
- };
- icon: import("vue-types").VueTypeValidableDef<any>;
- closeIcon: import("vue-types").VueTypeValidableDef<any>;
- onClose: PropType<NodeMouseEventHandler>;
- }>>, {
- showIcon: boolean;
- closable: boolean;
- banner: boolean;
- }, true, {}, {}, {
- P: {};
- B: {};
- D: {};
- C: {};
- M: {};
- Defaults: {};
- }, Readonly<ExtractPropTypes<{
- /**
- * Type of Alert styles, options: `success`, `info`, `warning`, `error`
- */
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
- /** Whether Alert can be closed */
- closable: {
- type: BooleanConstructor;
- default: any;
- };
- /** Close text to show */
- closeText: import("vue-types").VueTypeValidableDef<any>;
- /** Content of Alert */
- message: import("vue-types").VueTypeValidableDef<any>;
- /** Additional content of Alert */
- description: import("vue-types").VueTypeValidableDef<any>;
- /** Trigger when animation ending of Alert */
- afterClose: PropType<() => void>;
- /** Whether to show icon */
- showIcon: {
- type: BooleanConstructor;
- default: any;
- };
- prefixCls: StringConstructor;
- banner: {
- type: BooleanConstructor;
- default: any;
- };
- icon: import("vue-types").VueTypeValidableDef<any>;
- closeIcon: import("vue-types").VueTypeValidableDef<any>;
- onClose: PropType<NodeMouseEventHandler>;
- }>>, () => import("../_util/type").VueNode, {}, {}, {}, {
- showIcon: boolean;
- closable: boolean;
- banner: boolean;
- }>;
- __isFragment?: never;
- __isTeleport?: never;
- __isSuspense?: never;
- } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
- /**
- * Type of Alert styles, options: `success`, `info`, `warning`, `error`
- */
- type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
- /** Whether Alert can be closed */
- closable: {
- type: BooleanConstructor;
- default: any;
- };
- /** Close text to show */
- closeText: import("vue-types").VueTypeValidableDef<any>;
- /** Content of Alert */
- message: import("vue-types").VueTypeValidableDef<any>;
- /** Additional content of Alert */
- description: import("vue-types").VueTypeValidableDef<any>;
- /** Trigger when animation ending of Alert */
- afterClose: PropType<() => void>;
- /** Whether to show icon */
- showIcon: {
- type: BooleanConstructor;
- default: any;
- };
- prefixCls: StringConstructor;
- banner: {
- type: BooleanConstructor;
- default: any;
- };
- icon: import("vue-types").VueTypeValidableDef<any>;
- closeIcon: import("vue-types").VueTypeValidableDef<any>;
- onClose: PropType<NodeMouseEventHandler>;
- }>>, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
- showIcon: boolean;
- closable: boolean;
- banner: boolean;
- }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
- export default _default;
|