UNPKG

@nutui/nutui-react-taro

Version:

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

23 lines (22 loc) 867 B
import { default as React, FunctionComponent, ReactNode } from 'react'; import { BasicComponent } from '../../utils/typings'; import { RangeMark, RangeValue } from './types'; export interface RangeProps extends BasicComponent { value: RangeValue; defaultValue: RangeValue; range: boolean; disabled: boolean; min: number; max: number; step: number; minDescription: ReactNode; maxDescription: ReactNode; button: ReactNode; vertical: boolean; marks: Record<string, ReactNode> | RangeMark[]; currentDescription: ((value: RangeValue) => ReactNode) | null; onChange: (value: RangeValue) => void; onStart: () => void; onEnd: (value: RangeValue) => void; } export declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange' | 'defaultValue'>>;