UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

54 lines (53 loc) 1.46 kB
import * as React from 'react'; import { PickerData } from '../picker-view'; export interface PopupPickerProps { /** * 是否显示 */ show?: boolean; /** * 关闭事件回调 */ onCancel?: () => void; /** * 确定事件回调 */ onOk: (v: any) => void; onPickerChange: (v: any) => void; onVisibleChange: (visible: boolean) => void; prefixCls?: string; pickerPrefixCls?: string; style?: React.CSSProperties; data: PickerData[]; cascade?: boolean; onChange: (v: any) => void; onLabelChange: (v: any) => void; cols?: number; /** * 默认选中的数据 */ defaultSelectedValue?: any[]; value: string[] | number[]; format?: (value: any) => void; indicatorStyle?: React.CSSProperties; itemStyle?: React.CSSProperties; } export default class PopupPicker extends React.PureComponent<PopupPickerProps, any> { static defaultProps: { show: boolean; onCancel: () => null; prefixCls: string; pickerPrefixCls: string; data: never[]; cascade: boolean; }; scrollValue: any; getSel: (v: any) => void | string[]; getPickerCol: () => JSX.Element[]; onOk: (v: any) => void; setScrollValue: (v: any) => void; setCascadeScrollValue: (v: any) => void; onPickerChange: (v: any) => void; onVisibleChange: (visible: boolean) => void; render(): JSX.Element; }