{"id":19345553,"url":"https://github.com/future-team/ph-cascade-selector","last_synced_at":"2025-06-22T07:02:34.312Z","repository":{"id":57322738,"uuid":"64100152","full_name":"future-team/ph-cascade-selector","owner":"future-team","description":"基于phonexi－ui的级联选择组件","archived":false,"fork":false,"pushed_at":"2017-06-28T09:19:52.000Z","size":344,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-27T16:18:34.856Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/future-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-25T03:15:47.000Z","updated_at":"2016-07-26T12:06:00.000Z","dependencies_parsed_at":"2022-08-25T22:42:29.314Z","dependency_job_id":null,"html_url":"https://github.com/future-team/ph-cascade-selector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/future-team/ph-cascade-selector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-cascade-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-cascade-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-cascade-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-cascade-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/ph-cascade-selector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-cascade-selector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261250177,"owners_count":23130534,"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-10T04:07:00.644Z","updated_at":"2025-06-22T07:02:29.285Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ph-cascade-selector\n\n级联选择\n```jsx\n\u003cCascadeSelector    selectorData={this.state.selectorData}\n                    itemClick={function(item){\n                        console.log(item);\n                    }}\n                    label='选择问题分类'\u003e\n\u003c/CascadeSelector\u003e\n```\n回调返回值如下：\n```js\n {typeId: 1000024, typeName: \"ppe测试\", nodeType: \"leaf\"}\n {typeId: 8, typeName: \"页面展示/排序\", nodeType: \"branch\"}\n```\n\n##  API\nView [example](/example/src/index.js) to get more details\n\n#### `\u003cCascadeSelector\u003e` Props:\n- selectorData 级联选择的数据 .\n- itemClick 每当item被选择（不论叶子节点还是树枝节点被选中），都会调用itemClick回调，nodeType用来区分哪个类型的节点被选择.\n- label 用户没有选择任何item时，默认展示的文字.\n\n\n\n### Contributing\n\n- Fork the project\n- Run the project in development view demo: `$ npm run demo`\n- Make changes.\n- Add appropriate tests\n- `$ npm run test`\n- If tests don't pass, make them pass.\n- Update README with appropriate docs.\n- Rnn build\n- `$ npm run build`\n- Commit and PR.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fph-cascade-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fph-cascade-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fph-cascade-selector/lists"}