UNPKG

zarm

Version:

基于 React 的移动端UI库

22 lines (21 loc) 583 B
import * as React from 'react'; export declare type WheelValue = string | number | boolean; export interface WheelItem { value?: WheelValue; label?: React.ReactNode; [key: string]: any; } export interface FieldNames { value: string; label: string; } export interface BaseWheelProps { value?: WheelValue; defaultValue?: WheelValue; fieldNames?: Partial<FieldNames>; dataSource?: Array<WheelItem>; disabled?: boolean; stopScroll?: boolean; itemRender?: (item: WheelItem) => React.ReactNode; onChange?: (value: WheelValue) => void; }