UNPKG

zp-bee

Version:

zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。

26 lines (25 loc) 845 B
import React from 'react'; import { Moment } from 'moment'; import BeeDatePicker, { RefProps, DateOption } from './datePicker'; declare type TypeOption = { type: string; name: string; }; declare type DateRange = [Moment, Moment]; interface BeeTypePickerProps { typeOptions: TypeOption[]; defaultType: string; dateOptions: DateOption[]; onTypeDateSelect: (type: string, dateRange: DateRange) => void; } export declare type RefTypeProps = { handleReset: () => void; timeType: string; }; interface CompoundedComponent extends React.ForwardRefExoticComponent<BeeTypePickerProps & React.RefAttributes<RefTypeProps>> { defaultOptions: DateOption[]; BeeBaseDatePicker: typeof BeeDatePicker; } declare const BeeTypePickerRef: CompoundedComponent; export { RefProps, DateOption }; export default BeeTypePickerRef;