|
| 1 | +# rc-cascader |
| 2 | +--- |
| 3 | + |
| 4 | +React Cascader Component |
| 5 | + |
| 6 | + |
| 7 | +[![NPM version][npm-image]][npm-url] |
| 8 | +[![build status][travis-image]][travis-url] |
| 9 | +[![Test coverage][coveralls-image]][coveralls-url] |
| 10 | +[![gemnasium deps][gemnasium-image]][gemnasium-url] |
| 11 | +[![node version][node-image]][node-url] |
| 12 | +[![npm download][download-image]][download-url] |
| 13 | +[](https://saucelabs.com/u/rc-cascader) |
| 14 | + |
| 15 | +[](https://saucelabs.com/u/rc-cascader) |
| 16 | + |
| 17 | +[npm-image]: http://img.shields.io/npm/v/rc-cascader.svg?style=flat-square |
| 18 | +[npm-url]: http://npmjs.org/package/rc-cascader |
| 19 | +[travis-image]: https://img.shields.io/travis/react-component/cascader.svg?style=flat-square |
| 20 | +[travis-url]: https://travis-ci.org/react-component/cascader |
| 21 | +[coveralls-image]: https://img.shields.io/coveralls/react-component/cascader.svg?style=flat-square |
| 22 | +[coveralls-url]: https://coveralls.io/r/react-component/cascader?branch=master |
| 23 | +[gemnasium-image]: http://img.shields.io/gemnasium/react-component/cascader.svg?style=flat-square |
| 24 | +[gemnasium-url]: https://gemnasium.com/react-component/cascader |
| 25 | +[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square |
| 26 | +[node-url]: http://nodejs.org/download/ |
| 27 | +[download-image]: https://img.shields.io/npm/dm/rc-cascader.svg?style=flat-square |
| 28 | +[download-url]: https://npmjs.org/package/rc-cascader |
| 29 | + |
| 30 | + |
| 31 | +## Browser Support |
| 32 | + |
| 33 | +| |  |  |  | | |
| 34 | +| --- | --- | --- | --- | --- | |
| 35 | +| IE 8+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ | |
| 36 | + |
| 37 | +## Screenshots |
| 38 | + |
| 39 | +<img src="" width="288"/> |
| 40 | + |
| 41 | + |
| 42 | +## Development |
| 43 | + |
| 44 | +``` |
| 45 | +npm install |
| 46 | +npm start |
| 47 | +``` |
| 48 | + |
| 49 | +## Example |
| 50 | + |
| 51 | +http://localhost:8000/examples/ |
| 52 | + |
| 53 | + |
| 54 | +online example: http://react-component.github.io/cascader/ |
| 55 | + |
| 56 | + |
| 57 | +## Feature |
| 58 | + |
| 59 | +* support ie8,ie8+,chrome,firefox,safari |
| 60 | + |
| 61 | +### Keyboard |
| 62 | + |
| 63 | + |
| 64 | +## install |
| 65 | + |
| 66 | + |
| 67 | +[](https://npmjs.org/package/rc-cascader) |
| 68 | + |
| 69 | + |
| 70 | +## Usage |
| 71 | + |
| 72 | +```js |
| 73 | +var Cascader = require('rc-cascader'); |
| 74 | +var React = require('react'); |
| 75 | +React.render(<Cascader />, container); |
| 76 | +``` |
| 77 | + |
| 78 | +## API |
| 79 | + |
| 80 | +### props |
| 81 | + |
| 82 | +<table class="table table-bordered table-striped"> |
| 83 | + <thead> |
| 84 | + <tr> |
| 85 | + <th style="width: 100px;">name</th> |
| 86 | + <th style="width: 50px;">type</th> |
| 87 | + <th style="width: 50px;">default</th> |
| 88 | + <th>description</th> |
| 89 | + </tr> |
| 90 | + </thead> |
| 91 | + <tbody> |
| 92 | + <tr> |
| 93 | + <td>className</td> |
| 94 | + <td>String</td> |
| 95 | + <td></td> |
| 96 | + <td>additional css class of root dom node</td> |
| 97 | + </tr> |
| 98 | + </tbody> |
| 99 | +</table> |
| 100 | + |
| 101 | + |
| 102 | +## Test Case |
| 103 | + |
| 104 | +http://localhost:8000/tests/runner.html?coverage |
| 105 | + |
| 106 | +## Coverage |
| 107 | + |
| 108 | +http://localhost:8000/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8000/tests/runner.html?coverage |
| 109 | + |
| 110 | +## License |
| 111 | + |
| 112 | +rc-cascader is released under the MIT license. |
0 commit comments