可控制的单列或多列选择器。
import Picker from 'pile/dist/components/picker'
const {ColumnPicker} = Picker
<ColumnPicker
value={[2,4]}
options={[[1,2,3],[4,5,6]]}
open = {false}
pickerAway = {this.clickAway}
ref = "pickers"
/>
参数 | 描述 | 数据类型 | 默认值 |
---|---|---|---|
value | 默认值 | array | |
options | 配置项 | array | |
pickerAway | 点击确认后回调,返回值(o),o:(array)各列所选中的内容,如:[2015,"12月"],数组的个数与选择器的列数相当 | function |