UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

788 lines (787 loc) 34.6 kB
import type { Plugin } from 'vue'; import TabPane from '../vc-tabs/src/TabPane'; import TabContent from '../vc-tabs/src/TabContent'; declare const _default: { new (...args: any[]): { $: import("vue").ComponentInternalInstance; $data: {}; $props: Partial<{ prefixCls: string; centered: boolean; tabBarStyle: { [key: string]: any; }; tabPosition: string; renderTabBar: (...args: any[]) => any; tabBarGutter: number; destroyInactiveTabPane: boolean; hideAdd: boolean; onTabClick: (...args: any[]) => any; }> & Omit<Readonly<{ prefixCls?: unknown; activeKey?: unknown; defaultActiveKey?: unknown; hideAdd?: unknown; centered?: unknown; tabBarStyle?: unknown; tabBarExtraContent?: unknown; destroyInactiveTabPane?: unknown; type?: unknown; tabPosition?: unknown; size?: unknown; animated?: unknown; tabBarGutter?: unknown; renderTabBar?: unknown; onChange?: unknown; onTabClick?: unknown; onPrevClick?: unknown; onNextClick?: unknown; onEdit?: unknown; } & { prefixCls: string; centered: boolean; tabBarStyle: { [key: string]: any; }; tabPosition: string; tabBarGutter: number; destroyInactiveTabPane: boolean; hideAdd: boolean; } & { type?: "line" | "card" | "editable-card"; onChange?: (activeKey: string) => void; onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void; size?: string; activeKey?: string | number; tabBarExtraContent?: any; animated?: boolean | { [key: string]: any; }; renderTabBar?: (...args: any[]) => any; defaultActiveKey?: string | number; onTabClick?: (...args: any[]) => any; onPrevClick?: (e: MouseEvent) => void; onNextClick?: (e: MouseEvent) => void; }> & { onChange?: (...args: any[]) => any; onEdit?: (...args: any[]) => any; "onUpdate:activeKey"?: (...args: any[]) => any; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefixCls" | "centered" | "tabBarStyle" | "tabPosition" | "renderTabBar" | "tabBarGutter" | "destroyInactiveTabPane" | "hideAdd" | "onTabClick">; $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: "change" | "update:activeKey" | "edit", ...args: any[]) => void; $el: any; $options: import("vue").ComponentOptionsBase<Readonly<{ prefixCls?: unknown; activeKey?: unknown; defaultActiveKey?: unknown; hideAdd?: unknown; centered?: unknown; tabBarStyle?: unknown; tabBarExtraContent?: unknown; destroyInactiveTabPane?: unknown; type?: unknown; tabPosition?: unknown; size?: unknown; animated?: unknown; tabBarGutter?: unknown; renderTabBar?: unknown; onChange?: unknown; onTabClick?: unknown; onPrevClick?: unknown; onNextClick?: unknown; onEdit?: unknown; } & { prefixCls: string; centered: boolean; tabBarStyle: { [key: string]: any; }; tabPosition: string; tabBarGutter: number; destroyInactiveTabPane: boolean; hideAdd: boolean; } & { type?: "line" | "card" | "editable-card"; onChange?: (activeKey: string) => void; onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void; size?: string; activeKey?: string | number; tabBarExtraContent?: any; animated?: boolean | { [key: string]: any; }; renderTabBar?: (...args: any[]) => any; defaultActiveKey?: string | number; onTabClick?: (...args: any[]) => any; onPrevClick?: (e: MouseEvent) => void; onNextClick?: (e: MouseEvent) => void; }> & { onChange?: (...args: any[]) => any; onEdit?: (...args: any[]) => any; "onUpdate:activeKey"?: (...args: any[]) => any; }, { configProvider: { getTargetContainer?: () => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; prefixCls?: string; getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string; renderEmpty?: typeof import("../config-provider/renderEmpty").default; transformCellText?: (tableProps: import("../table/interface").TransformCellTextProps) => any; csp?: unknown; autoInsertSpaceInButton?: boolean; locale?: { locale: string; Pagination?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; DatePicker?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; TimePicker?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Calendar?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Table?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Modal?: { okText: string; cancelText: string; justOkText: string; }; Popconfirm?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Transfer?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Select?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Upload?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Form?: { optional?: string; defaultValidateMessages: { default?: string | (() => string); required?: string | (() => string); enum?: string | (() => string); whitespace?: string | (() => string); date?: { format?: string | (() => string); parse?: string | (() => string); invalid?: string | (() => string); }; types?: { string?: string | (() => string); method?: string | (() => string); array?: string | (() => string); object?: string | (() => string); number?: string | (() => string); date?: string | (() => string); boolean?: string | (() => string); integer?: string | (() => string); float?: string | (() => string); regexp?: string | (() => string); email?: string | (() => string); url?: string | (() => string); hex?: string | (() => string); }; string?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; number?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; array?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; pattern?: { mismatch?: string | (() => string); }; }; }; Image?: { preview: string; }; }; pageHeader?: { ghost: boolean; }; componentSize?: import("../config-provider").SizeType; direction?: "ltr" | "rtl"; space?: { size: number | import("../config-provider").SizeType; }; virtual?: boolean; dropdownMatchSelectWidth?: boolean; form?: unknown; }; }, unknown, {}, { removeTab(targetKey: string, e: MouseEvent): void; handleChange(activeKey: string): void; createNewTab(targetKey: MouseEvent): void; }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeKey" | "edit")[], string, { prefixCls: string; centered: boolean; tabBarStyle: { [key: string]: any; }; tabPosition: string; renderTabBar: (...args: any[]) => any; tabBarGutter: number; destroyInactiveTabPane: boolean; hideAdd: boolean; onTabClick: (...args: any[]) => any; }> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]; renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: typeof import("vue").nextTick; $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle; } & Readonly<{ prefixCls?: unknown; activeKey?: unknown; defaultActiveKey?: unknown; hideAdd?: unknown; centered?: unknown; tabBarStyle?: unknown; tabBarExtraContent?: unknown; destroyInactiveTabPane?: unknown; type?: unknown; tabPosition?: unknown; size?: unknown; animated?: unknown; tabBarGutter?: unknown; renderTabBar?: unknown; onChange?: unknown; onTabClick?: unknown; onPrevClick?: unknown; onNextClick?: unknown; onEdit?: unknown; } & { prefixCls: string; centered: boolean; tabBarStyle: { [key: string]: any; }; tabPosition: string; tabBarGutter: number; destroyInactiveTabPane: boolean; hideAdd: boolean; } & { type?: "line" | "card" | "editable-card"; onChange?: (activeKey: string) => void; onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void; size?: string; activeKey?: string | number; tabBarExtraContent?: any; animated?: boolean | { [key: string]: any; }; renderTabBar?: (...args: any[]) => any; defaultActiveKey?: string | number; onTabClick?: (...args: any[]) => any; onPrevClick?: (e: MouseEvent) => void; onNextClick?: (e: MouseEvent) => void; }> & { onChange?: (...args: any[]) => any; onEdit?: (...args: any[]) => any; "onUpdate:activeKey"?: (...args: any[]) => any; } & import("vue").ShallowUnwrapRef<{ configProvider: { getTargetContainer?: () => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; prefixCls?: string; getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string; renderEmpty?: typeof import("../config-provider/renderEmpty").default; transformCellText?: (tableProps: import("../table/interface").TransformCellTextProps) => any; csp?: unknown; autoInsertSpaceInButton?: boolean; locale?: { locale: string; Pagination?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; DatePicker?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; TimePicker?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Calendar?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Table?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Modal?: { okText: string; cancelText: string; justOkText: string; }; Popconfirm?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Transfer?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Select?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Upload?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Form?: { optional?: string; defaultValidateMessages: { default?: string | (() => string); required?: string | (() => string); enum?: string | (() => string); whitespace?: string | (() => string); date?: { format?: string | (() => string); parse?: string | (() => string); invalid?: string | (() => string); }; types?: { string?: string | (() => string); method?: string | (() => string); array?: string | (() => string); object?: string | (() => string); number?: string | (() => string); date?: string | (() => string); boolean?: string | (() => string); integer?: string | (() => string); float?: string | (() => string); regexp?: string | (() => string); email?: string | (() => string); url?: string | (() => string); hex?: string | (() => string); }; string?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; number?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; array?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; pattern?: { mismatch?: string | (() => string); }; }; }; Image?: { preview: string; }; }; pageHeader?: { ghost: boolean; }; componentSize?: import("../config-provider").SizeType; direction?: "ltr" | "rtl"; space?: { size: number | import("../config-provider").SizeType; }; virtual?: boolean; dropdownMatchSelectWidth?: boolean; form?: unknown; }; }> & {} & {} & { removeTab(targetKey: string, e: MouseEvent): void; handleChange(activeKey: string): void; createNewTab(targetKey: MouseEvent): void; } & import("vue").ComponentCustomProperties; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import("vue").ComponentOptionsBase<Readonly<{ prefixCls?: unknown; activeKey?: unknown; defaultActiveKey?: unknown; hideAdd?: unknown; centered?: unknown; tabBarStyle?: unknown; tabBarExtraContent?: unknown; destroyInactiveTabPane?: unknown; type?: unknown; tabPosition?: unknown; size?: unknown; animated?: unknown; tabBarGutter?: unknown; renderTabBar?: unknown; onChange?: unknown; onTabClick?: unknown; onPrevClick?: unknown; onNextClick?: unknown; onEdit?: unknown; } & { prefixCls: string; centered: boolean; tabBarStyle: { [key: string]: any; }; tabPosition: string; tabBarGutter: number; destroyInactiveTabPane: boolean; hideAdd: boolean; } & { type?: "line" | "card" | "editable-card"; onChange?: (activeKey: string) => void; onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void; size?: string; activeKey?: string | number; tabBarExtraContent?: any; animated?: boolean | { [key: string]: any; }; renderTabBar?: (...args: any[]) => any; defaultActiveKey?: string | number; onTabClick?: (...args: any[]) => any; onPrevClick?: (e: MouseEvent) => void; onNextClick?: (e: MouseEvent) => void; }> & { onChange?: (...args: any[]) => any; onEdit?: (...args: any[]) => any; "onUpdate:activeKey"?: (...args: any[]) => any; }, { configProvider: { getTargetContainer?: () => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; prefixCls?: string; getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string; renderEmpty?: typeof import("../config-provider/renderEmpty").default; transformCellText?: (tableProps: import("../table/interface").TransformCellTextProps) => any; csp?: unknown; autoInsertSpaceInButton?: boolean; locale?: { locale: string; Pagination?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; DatePicker?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; TimePicker?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Calendar?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Table?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Modal?: { okText: string; cancelText: string; justOkText: string; }; Popconfirm?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Transfer?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Select?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Upload?: { constructor: Function; toString: () => string; toLocaleString: () => string; valueOf: () => Object; hasOwnProperty: (v: PropertyKey) => boolean; isPrototypeOf: (v: Object) => boolean; propertyIsEnumerable: (v: PropertyKey) => boolean; }; Form?: { optional?: string; defaultValidateMessages: { default?: string | (() => string); required?: string | (() => string); enum?: string | (() => string); whitespace?: string | (() => string); date?: { format?: string | (() => string); parse?: string | (() => string); invalid?: string | (() => string); }; types?: { string?: string | (() => string); method?: string | (() => string); array?: string | (() => string); object?: string | (() => string); number?: string | (() => string); date?: string | (() => string); boolean?: string | (() => string); integer?: string | (() => string); float?: string | (() => string); regexp?: string | (() => string); email?: string | (() => string); url?: string | (() => string); hex?: string | (() => string); }; string?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; number?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; array?: { len?: string | (() => string); min?: string | (() => string); max?: string | (() => string); range?: string | (() => string); }; pattern?: { mismatch?: string | (() => string); }; }; }; Image?: { preview: string; }; }; pageHeader?: { ghost: boolean; }; componentSize?: import("../config-provider").SizeType; direction?: "ltr" | "rtl"; space?: { size: number | import("../config-provider").SizeType; }; virtual?: boolean; dropdownMatchSelectWidth?: boolean; form?: unknown; }; }, unknown, {}, { removeTab(targetKey: string, e: MouseEvent): void; handleChange(activeKey: string): void; createNewTab(targetKey: MouseEvent): void; }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeKey" | "edit")[], "change" | "update:activeKey" | "edit", { prefixCls: string; centered: boolean; tabBarStyle: { [key: string]: any; }; tabPosition: string; renderTabBar: (...args: any[]) => any; tabBarGutter: number; destroyInactiveTabPane: boolean; hideAdd: boolean; onTabClick: (...args: any[]) => any; }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin & { readonly TabPane: typeof TabPane; readonly TabContent: typeof TabContent; }; export default _default; export { TabPane, TabContent };