rmc-cascader
m-cascader ui component for react
Last updated 7 years ago by arron.wf .
MIT · Repository · Bugs · Original npm
$ cnpm install rmc-cascader 
SYNC missed versions from official npm registry.

rmc-cascader


React Mobile Cascader Component (web and react-native)

NPM version react-native react build status Test coverage gemnasium deps node version npm download

Screenshots

web

native

Development

npm i
npm start

Example

http://localhost:8000/examples/

online example: http://react-component.github.io/m-cascader/

react-native

npm run rn-init
npm run watch-tsc
react-native start
react-native run-ios

install

rmc-cascader

API

Cascader props

name description type default
className(web) additional css class of root dom node String ''
prefixCls(web) prefix class String 'rmc-cascader'
pickerPrefixCls(web) picker prefix class String 'rmc-picker'
pickerItemStyle picker item style {}
data The data of cascade array
value selected value array
defaultValue initial selected value array
onChange Function(value) -

rmc-cascader/lib/Popup props

name description type default
className(web) additional css class of modal node String ''
prefixCls(web) prefix class String 'rmc-picker-popup'
style(web) additional style object {}
value selected value array
cascader React Cascader element
onChange exec on ok Function(value)
onDismiss exec on dismiss function
okText ok button text String 'Ok'
dismissText dismiss button text String 'Dismiss'
title Popup title String ''
visible whether pop picker is visible Boolean
onVisibleChange called when pop picker visible change Function

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-cascader is released under the MIT license.

Current Tags

  • 5.0.0-alpha.3                                ...           beta (8 years ago)
  • 5.0.3                                ...           latest (7 years ago)

3 Versions

  • 5.0.0-alpha.3                                ...           8 years ago
  • 4.3.5                                ...           8 years ago
  • 5.0.3                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org