@ucloud-fe/react-components
Version:
UCloud react components
19 lines (18 loc) • 643 B
TypeScript
import { ReactNode, MutableRefObject } from 'react';
import { DatePickerProps } from './DatePicker';
export declare type RangeActionRef = {
clear: () => void;
hide: () => void;
};
export declare type RangePickerRef = {
focus: () => void;
clear: () => void;
} | undefined;
declare const useRangePicker: ({ prefix, type, suffix, actionRef, onClear, ...pickProps }: DatePickerProps & {
prefix?: boolean | undefined;
type?: "date" | "month" | undefined;
suffix?: ReactNode;
actionRef: MutableRefObject<RangeActionRef | undefined>;
onClear?: (() => void) | undefined;
}) => any[];
export default useRangePicker;