UNPKG

@nutui/nutui-react

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

31 lines (30 loc) 890 B
import { FunctionComponent, ReactNode } from 'react'; import { BasicComponent } from '../../utils/typings'; export interface TimeType { value?: string; text?: string; [prop: string]: any; } export interface DateType { value?: string; text?: string; children?: TimeType[]; [prop: string]: any; } export interface OptionKeyType { valueKey: string; textKey: string; childrenKey: string; } export interface TimeSelectProps extends BasicComponent { visible: boolean; multiple?: boolean; title?: ReactNode; defaultValue: DateType[]; options: DateType[]; optionKey: OptionKeyType; onSelect?: (value: DateType[]) => void; onDateChange?: (date: DateType, value: DateType[]) => void; onTimeChange?: (time: TimeType, value: DateType[]) => void; } export declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;