hint import * as React from 'react' ; import Selector from './selector' ; import MultiSelector from './multiSelector' ; import TimeSelector from './time' ; import DateSelector from './date' ; import RegionSelector from './region' ; export default class _Picker extends React . Component < any > { static defaultProps = { mode : 'selector' , } ; render ( ) { const { mode , } = this . props ; if ( mode === 'selector' ) { return < Selector { ... this . props } / > ; } else if ( mode === 'multiSelector' ) { return < MultiSelector { ... this . props } / > ; } else if ( mode === 'time' ) { return < TimeSelector { ... this . props } / > ; } else if ( mode === 'date' ) { return < DateSelector { ... this . props } / > ; } else if ( mode === 'region' ) { return < RegionSelector { ... this . props } / > ; } else { return null ; } } }