1.0.0 • Published 5 years ago

react-fykc-region-select v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

/ 参数 regions:数据源 / regions:PropTypes.array, onAreaChange:PropTypes.func, val:PropTypes.object, showCity:PropTypes.bool, showDistrict:PropTypes.bool, showClear:PropTypes.bool,

返回参数 valueObj 格式{ provinceId:null, provinceName:null, cityId:null, cityName:null, districtId:null, districtName:null, } selectVal 格式 北京-北京-昌平区

regions格式 { "status": { "desc": "操作成功", "code": 0 }, "data": [{ "value": 1, "label": "中国", "children": [{ "value": 32, "label": "重庆", "children": [{ "value": 394, "label": "重庆", "children": { "value": 3328, "label": "永川区" } }] }] }] }