UNPKG

ant-design-vue

Version:

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

207 lines (206 loc) 8.77 kB
import type { DefineComponent } from 'vue'; declare type PickerType = 'date' | 'week' | 'month'; export default function wrapPicker<P>(Picker: DefineComponent<P>, props: any, pickerType: PickerType): DefineComponent<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; }; picker: any; popupRef: any; }, unknown, {}, { savePicker(node: any): void; getDefaultLocale(): any; savePopupRef(ref: any): void; handleOpenChange(open: boolean): void; handleFocus(e: FocusEvent): void; handleBlur(e: FocusEvent): void; handleMouseEnter(e: MouseEvent): void; handleMouseLeave(e: MouseEvent): void; handleChange(date: any, dateString: string): void; handleOk(val: any): void; handleCalendarChange(date: any, dateString: string): void; focus(): void; blur(): void; transformValue(props: any): void; renderPicker(locale: any, localeCode: string): JSX.Element; }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "mouseenter" | "mouseleave" | "update:value" | "openChange" | "ok" | "calendarChange")[], "blur" | "change" | "focus" | "mouseenter" | "mouseleave" | "update:value" | "openChange" | "ok" | "calendarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{ [x: string]: any; } | ({ [x: string]: unknown; } & { [x: string]: any; } & { [x: number]: any; })> & { onFocus?: (...args: any[]) => any; onBlur?: (...args: any[]) => any; onChange?: (...args: any[]) => any; onMouseenter?: (...args: any[]) => any; onMouseleave?: (...args: any[]) => any; "onUpdate:value"?: (...args: any[]) => any; onOpenChange?: (...args: any[]) => any; onCalendarChange?: (...args: any[]) => any; onOk?: (...args: any[]) => any; }, {} | { [x: string]: any; }>; export {};