# rc-cascader
**Repository Path**: mirrors_fis-components/rc-cascader
## Basic Information
- **Project Name**: rc-cascader
- **Description**: Fork from https://github.com/react-component/cascader.git
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-07-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# rc-cascader
---
React Cascader Component
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![gemnasium deps][gemnasium-image]][gemnasium-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/rc-cascader.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rc-cascader
[travis-image]: https://img.shields.io/travis/react-component/cascader.svg?style=flat-square
[travis-url]: https://travis-ci.org/react-component/cascader
[coveralls-image]: https://img.shields.io/coveralls/react-component/cascader.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-component/cascader?branch=master
[gemnasium-image]: http://img.shields.io/gemnasium/react-component/cascader.svg?style=flat-square
[gemnasium-url]: https://gemnasium.com/react-component/cascader
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/rc-cascader.svg?style=flat-square
[download-url]: https://npmjs.org/package/rc-cascader
## Browser Support
| |  |  |  | |
| --- | --- | --- | --- | --- |
| IE 8+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |
## Screenshots
## Development
```
npm install
npm start
```
## Example
http://react-component.github.io/cascader/
## Feature
* support ie8,ie8+,chrome,firefox,safari
### Keyboard
## install
[](https://npmjs.org/package/rc-cascader)
## Usage
```js
var Cascader = require('rc-cascader');
var React = require('react');
const addressOptions = [{
'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(, container);
```
## API
### props
| name |
type |
default |
description |
| options |
Object |
|
The data options of cascade |
| value |
Array |
|
selected value |
| defaultValue |
Array |
|
initial selected value |
| onChange |
Function(value, selectedOptions) |
|
callback when finishing cascader select |
| changeOnSelect |
Boolean |
false |
change value on each selection |
| loadData |
Function(selectedOptions) |
|
callback when click any option, use for loading more options |
| expandTrigger |
String |
'click' |
expand current item when click or hover |
| popupVisible |
Boolean |
|
visibility of popup overlay |
| onPopupVisibleChange |
Function(visible) |
|
callback when popup overlay's visibility changed |
| transitionName |
String |
|
transition className like "slide-up" |
| prefixCls |
String |
rc-cascader |
prefix className of popup overlay |
| popupClassName |
String |
|
additional className of popup overlay |
| popupPlacement |
String |
bottomLeft |
use preset popup align config from builtinPlacements:bottomRight topRight bottomLeft topLeft |
### option
| name |
type |
default |
description |
| label |
String |
|
option text to display |
| value |
String |
|
option value as react key |
| disabled |
Boolean |
|
disabled option |
| children |
Array |
|
children options |
## Test Case
http://localhost:8000/tests/runner.html?coverage
## Coverage
http://localhost:8000/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8000/tests/runner.html?coverage
## License
rc-cascader is released under the MIT license.