{"id":18430220,"url":"https://github.com/myopenresources/cc-qrcode-demo","last_synced_at":"2026-04-17T17:31:05.174Z","repository":{"id":38728844,"uuid":"196788579","full_name":"myopenresources/cc-qrcode-demo","owner":"myopenresources","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T08:42:33.000Z","size":3383,"stargazers_count":0,"open_issues_count":29,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T07:37:02.311Z","etag":null,"topics":["angular","angular8","qrcode"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/myopenresources.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":"2019-07-14T03:16:07.000Z","updated_at":"2019-07-15T05:33:37.000Z","dependencies_parsed_at":"2022-09-17T02:01:01.030Z","dependency_job_id":null,"html_url":"https://github.com/myopenresources/cc-qrcode-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/myopenresources/cc-qrcode-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-qrcode-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-qrcode-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-qrcode-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-qrcode-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myopenresources","download_url":"https://codeload.github.com/myopenresources/cc-qrcode-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-qrcode-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31938583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","angular8","qrcode"],"created_at":"2024-11-06T05:19:54.429Z","updated_at":"2026-04-17T17:31:05.134Z","avatar_url":"https://github.com/myopenresources.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular版 二维码组件cc-qrcode\n\n## 安装\nnpm install cc-qrcode --save 或 yarn add cc-qrcode\n\n## 使用\n```javascript\n// 业务模块\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { QrcodeModule } from 'cc-qrcode';\n\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    QrcodeModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n\n//业务html\n\u003cdiv\u003e\n  \u003ccc-qrcode [value]=\"'123456789'\"\u003e\u003c/cc-qrcode\u003e\n\u003c/div\u003e\n\n```\n\n## 参数\n1. value：二维码值\u003cbr\u003e\n\n2. background：背景颜色，默认白色\u003cbr\u003e\n\n3. foreground：前景颜色，默认黑色\u003cbr\u003e\n\n4. backgroundAlpha：背景透明度\u003cbr\u003e\n\n5. foregroundAlpha：前景透明度\u003cbr\u003e\n\n6. level：二维码级别，默认L\u003cbr\u003e\n\n7. mime：生成的图片类型，默认image/png\u003cbr\u003e\n\n8. padding：内边距\u003cbr\u003e\n\n9. size：二维码大小（宽高）\u003cbr\u003e\n\n10. canvas：是否使用画布生成，默认为false，图片方式\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyopenresources%2Fcc-qrcode-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyopenresources%2Fcc-qrcode-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyopenresources%2Fcc-qrcode-demo/lists"}