uxcore-collapse component for uxcore.
npm install uxcore-collapse---
uxcore-collapse ui component for react
#### Setup develop environment
``sh`
$ git clone https://github.com/uxcore/uxcore-collapse && cd uxcore-collapse
$ npm install
$ npm start
` {text} {text} {text}js`
} key="1">
} key="2">
} key="3">
http://uxco.re/components/collapse/
| 配置项 | 类型 | 必填 | 默认值 | 功能/备注 |
|---|---|---|---|---|
|prefixCls | string | optional | kuma-collapse | 默认类名,用户可以通过修改此项来完成样式的定制 |null
|activeKey | array/string | optional | the first panel key | 当前激活面板的 key 默认无,accordion 模式下默认第一个元素 |
|defaultActiveKey | array/string | optional | | 初始化选中面板的 key |false
|accordion | bool | optional | | 手风琴模式 |(key,activeKey)=>{}
|onChange | function | optional | | 切换面板的回调,参数 key 为当前变动的面板,activeKey 为所有激活的面板 |
| 配置项 | 类型 | 必填 | 默认值 | 功能/备注 |
|---|---|---|---|---|
|key| string | optional | index | 当前面板的 key |
|prefixCls| string | optional | Collapse.prefixCls |默认类名,用户可以通过修改此项来完成样式的定制 |
|header | string/number/node | optional | null| 面板头内容 |(isActive, e)=>{}`| 面板头点击事件 |
|isActive| bool | optional | false | 面板当前是否展开,true 表示展开 |
|onItemClick| function| optional |