zp-bee
Version:
zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。
26 lines (25 loc) • 779 B
TypeScript
import React from 'react';
import { Moment } from 'moment';
declare type DateRange = [Moment, Moment];
export interface DateOption {
name: string;
value: string;
dateRange: DateRange;
}
declare type Props = {
className?: string;
dateOptions: DateOption[];
defaultSelectedIndex?: number;
allowClear: boolean;
rangeDateValue?: DateRange;
onDateSelect: (dateRange: DateRange) => void;
onDisabledDate?: (dateRange: DateRange) => boolean;
};
export declare type RefProps = {
handleResetDate: () => void;
};
interface CompoundedComponent extends React.ForwardRefExoticComponent<Props & React.RefAttributes<RefProps>> {
defaultOptions: DateOption[];
}
declare const BeeDatePickerRef: CompoundedComponent;
export default BeeDatePickerRef;