{"id":18428161,"url":"https://github.com/futurewan/react-region-picker","last_synced_at":"2025-04-13T20:54:23.063Z","repository":{"id":57343422,"uuid":"279820798","full_name":"futurewan/react-region-picker","owner":"futurewan","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-16T10:15:40.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-13T20:54:19.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/futurewan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-15T09:10:37.000Z","updated_at":"2020-07-24T09:27:49.000Z","dependencies_parsed_at":"2022-09-12T06:30:29.749Z","dependency_job_id":null,"html_url":"https://github.com/futurewan/react-region-picker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futurewan%2Freact-region-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futurewan%2Freact-region-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futurewan%2Freact-region-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futurewan%2Freact-region-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/futurewan","download_url":"https://codeload.github.com/futurewan/react-region-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248782281,"owners_count":21160716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T05:12:56.447Z","updated_at":"2025-04-13T20:54:23.028Z","avatar_url":"https://github.com/futurewan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-region-picker\nreact hooks版本 城市地区联动\n\n## install\n```\nnpm install --save react-region-picker\n```\n## usage\n```\nimport CityPicker from 'react-region-picker';\nimport CityData from 'react-region-picker/lib/city.json';\nimport 'react-region-picker/lib/style.css';\n\n\u003cCityPicker regionList={CityData} data={[]} /\u003e\n```\n\n## API\n| 属性 | 说明 | 类型 | 默认值 |\n| :---------- | :--- | :--- | :--- |\n| regionList | 数据源 | Array\u003cid,name,shortName,parentId,childRegionList\u003e | - |\n| data | 选中值 | Array\u003cnumber,number,number\u003e | - |\n| maskCanClose | 点击遮罩是否可以关闭 | Boolean | true |\n| isShowPicker | 主动显示 | Boolean | false |\n| placeholder | 默认显示文案 | String | '请选择城市' |\n| onFinish | 城市选择完成回调 | Function | - |\n| onCancel | 取消城市选择回调 | Function | - |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturewan%2Freact-region-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuturewan%2Freact-region-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturewan%2Freact-region-picker/lists"}