6.0.0 • Published 2 years ago
@gem-mine/rc-cascader v6.0.0
rc-cascader
React Cascader Component
Browser Support
IE 8+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |
Screenshots
Example
http://react-component.github.io/cascader/
Install
$ npm install rc-cascader --save
Usage
import React from 'react';
import Cascader from 'rc-cascader';
const options = [{
'label': '福建',
'value': 'fj',
'children': [{
'label': '福州',
'value': 'fuzhou',
'children': [{
'label': '马尾',
'value': 'mawei',
}],
}, {
'label': '泉州',
'value': 'quanzhou',
}],
}, {
'label': '浙江',
'value': 'zj',
'children': [{
'label': '杭州',
'value': 'hangzhou',
'children': [{
'label': '余杭',
'value': 'yuhang',
}],
}],
}, {
'label': '北京',
'value': 'bj',
'children': [{
'label': '朝阳区',
'value': 'chaoyang',
}, {
'label': '海淀区',
'value': 'haidian',
}],
}];
React.render(
<Cascader options={options}>
...
</Cascader>
, container);
API
props
option
Development
$ npm install
$ npm start
Test Case
$ npm test
Coverage
$ npm run coverage
License
rc-cascader is released under the MIT license.
6.0.0
2 years ago
5.1.1
3 years ago
5.1.0
3 years ago
5.0.0-beta.1
3 years ago
4.1.1
4 years ago
4.1.1-beta.0
4 years ago
4.1.0
5 years ago