移动端react的级联组件.
import "react-mobile-cascade/assets/cascade.css"
<Cascade column={3} data={...} onDone={this.change}></Cascade>Type: number
层级
Note: 必填.
Type: array
级联数据
Note: 必填.
Type: string
标题
Note: 默认为空.
Type: function
点击保存按钮触发,返回选中的数据
Note: 返回值为数组,数组长度和column保持一致.
Type: function
点击取消按钮触发
Type: bool
初始化后是否立刻返回选中的数据
Note: 默认false.
Type: string
展示数据的Key,默认为"text".
Type: string
数据子级的Key,默认为"children".
Type: string
数据中选中的Key,默认为"checked".
Copyright (c) 2016 Cao Ren under the MIT License.