antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
19 lines (18 loc) • 778 B
TypeScript
import React, { ReactNode } from 'react';
import { NativeProps } from '../../utils/native-props';
export declare type PickerValue = string | null;
export declare type PickerValueExtend = {
items: (PickerColumnItem | null)[];
};
export declare type PickerColumnItem = {
label: ReactNode;
value: string;
};
export declare type PickerColumn = (string | PickerColumnItem)[];
export declare type PickerViewProps = {
columns: PickerColumn[] | ((value: PickerValue[]) => PickerColumn[]);
value?: PickerValue[];
defaultValue?: PickerValue[];
onChange?: (value: PickerValue[], extend: PickerValueExtend) => void;
} & NativeProps<'--height' | '--item-height' | '--item-font-size'>;
export declare const PickerView: React.NamedExoticComponent<PickerViewProps>;