{"id":19345567,"url":"https://github.com/future-team/eg-multicheck","last_synced_at":"2025-08-31T12:43:32.628Z","repository":{"id":57220264,"uuid":"87780090","full_name":"future-team/eg-multicheck","owner":"future-team","description":"eagle-ui多选组件","archived":false,"fork":false,"pushed_at":"2020-09-28T00:56:30.000Z","size":490,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T05:24:43.679Z","etag":null,"topics":["eagle-ui"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","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":"2017-04-10T07:28:19.000Z","updated_at":"2020-09-28T00:56:33.000Z","dependencies_parsed_at":"2022-08-29T02:12:55.920Z","dependency_job_id":null,"html_url":"https://github.com/future-team/eg-multicheck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/future-team/eg-multicheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Feg-multicheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Feg-multicheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Feg-multicheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Feg-multicheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/eg-multicheck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Feg-multicheck/sbom","scorecard":{"id":414695,"data":{"date":"2025-08-11","repo":{"name":"github.com/future-team/eg-multicheck","commit":"adf5eb326bf7955fd455604ab92e5bfeade34c6a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T23:32:13.309Z","repository_id":57220264,"created_at":"2025-08-18T23:32:13.309Z","updated_at":"2025-08-18T23:32:13.309Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272982771,"owners_count":25025984,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["eagle-ui"],"created_at":"2024-11-10T04:07:06.734Z","updated_at":"2025-08-31T12:43:32.603Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eg-multicheck\n搭配 eagle-ui 使用的多选组件\n\n## 参数说明\n- `title`： 类型`String`，设置多选组的lebal显示的字\n- `defaultChecked`： 类型`String`|`Array`，设置默认选中的选项，默认为空，可选值为字符串或者数组\n- `checkCallback`： 类型`Function`，选中事件的回调，其回调的参数值为选中的value值\n- `spacing`： 类型`Number`， 设置选项距离label的偏移量，如果不指定，则会根据label的宽度自动计算\n\n## 使用\n```bash\n$ npm install eg-multicheck --save\n```\n\n```javascript\nimport React, { Component ,PropTypes} from 'react';\nimport ReactDom from 'react/lib/ReactDOM';\nimport {Input} from 'eagle-ui';\nimport EgMultiCheck from 'eg-multicheck'\n\nclass Demo extends  Component {\n    constructor(props){\n        super(props)\n    }\n    multiCheck(values) {\n        console.log('multiCheck', values)\n    }\n    render(){\n        return (\n            \u003cdiv\u003e\n                \u003cEgMultiCheck title='历史合作：' defaultChecked={['4', '5', '6']} checkCallback={this.multiCheck.bind(this)} spacing={100}\u003e\n                    \u003cInput label=\"不限\" type=\"checkbox\" value=\"0\"/\u003e\n                    \u003cInput label=\"丽人\" type=\"checkbox\" value=\"1\"/\u003e\n                    \u003cInput label=\"闪惠\" type=\"checkbox\" value=\"2\"/\u003e\n                    \u003cInput label=\"关键词\" type=\"checkbox\" value=\"3\"/\u003e\n                    \u003cInput label=\"预定\" type=\"checkbox\" value=\"4\"/\u003e\n                    \u003cInput label=\"CPU\" type=\"checkbox\" value=\"5\"/\u003e\n                    \u003cInput label=\"商户通\" type=\"checkbox\" value=\"6\"/\u003e\n                \u003c/EgMultiCheck\u003e\n            \u003c/div\u003e\n        )\n    }\n}\n```\n详细的使用请参见[example](https://future-team.github.io/eg-multicheck/examples/index.html)\n\n## ⚠️注意\n\n若要结合`LabelGroup`一起使用，达到父子如下效果时，注意需要添加一个class名为`eg-multicheck-wrap`的标签包裹`EgMultiCheck`，具体场景请参见 [example](https://future-team.github.io/eg-multicheck/examples/index.html)        \n\u003cimg src=\"./examples/snapshot.png\" width=\"50%\"\u003e      \n## Command\n```\n#测试\t\nnpm run test\t\n#打包\t\nnpm run build\t\n#例子演示\t\nnpm start\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Feg-multicheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Feg-multicheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Feg-multicheck/lists"}