UNPKG

shineout

Version:

Shein 前端组件库

45 lines (44 loc) 2.66 kB
import React from 'react'; import { DatePickerPropsWidthAbsolute, DatePickerValue as DatePickerValueType, QuickSelectType, DatePickerPropsWidthValue } from './Props'; interface DatePickerState { value: DatePickerValueType; quickSelect?: QuickSelectType | null; } declare const _default: <T extends DatePickerValueType>(Origin: React.ComponentType<import("./Props").ContainerProps<T>>) => { new (props: DatePickerPropsWidthValue<T>): { componentDidMount(): void; shouldComponentUpdate(nextProps: DatePickerPropsWidthValue, nextState: DatePickerState): boolean; componentDidUpdate(prevProps: DatePickerPropsWidthValue): void; getOptions(): { timeZone: string | undefined; weekStartsOn: any; }; getFormat(): string; rangeWithSingle(): boolean | 0 | undefined; convertValue(value: DatePickerValueType): any; handleChange(value: DatePickerValueType, callback?: (() => void) | undefined, quickSelect?: QuickSelectType<Date[]> | undefined): void; handleBlur(): void; render(): JSX.Element; context: any; setState<K extends keyof DatePickerState>(state: DatePickerState | ((prevState: Readonly<DatePickerState>, props: Readonly<DatePickerPropsWidthValue<T>>) => DatePickerState | Pick<DatePickerState, K> | null) | Pick<DatePickerState, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<DatePickerPropsWidthValue<T>> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<DatePickerState>; refs: { [key: string]: React.ReactInstance; }; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<DatePickerPropsWidthValue<T>>, prevState: Readonly<DatePickerState>): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<DatePickerPropsWidthValue<T>>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DatePickerPropsWidthValue<T>>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<DatePickerPropsWidthValue<T>>, nextState: Readonly<DatePickerState>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<DatePickerPropsWidthValue<T>>, nextState: Readonly<DatePickerState>, nextContext: any): void; }; contextType?: React.Context<any> | undefined; }; export default _default;