{"id":22705279,"url":"https://github.com/hecom-rn/badge","last_synced_at":"2025-03-29T20:25:15.531Z","repository":{"id":57115512,"uuid":"182030395","full_name":"hecom-rn/Badge","owner":"hecom-rn","description":"角标组件。","archived":false,"fork":false,"pushed_at":"2019-04-24T08:03:48.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-04-25T16:20:17.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/hecom-rn.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-04-18T06:36:07.000Z","updated_at":"2019-05-22T07:17:23.000Z","dependencies_parsed_at":"2022-08-22T11:41:03.997Z","dependency_job_id":null,"html_url":"https://github.com/hecom-rn/Badge","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FBadge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FBadge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FBadge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FBadge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hecom-rn","download_url":"https://codeload.github.com/hecom-rn/Badge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246239249,"owners_count":20745674,"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-12-10T09:09:53.677Z","updated_at":"2025-03-29T20:25:15.500Z","avatar_url":"https://github.com/hecom-rn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Badge\n\n[![npm version](https://img.shields.io/npm/v/@hecom/badge.svg?style=flat)](https://www.npmjs.com/package/@hecom/badge)\n[![Build Status](https://travis-ci.org/hecom-rn/Badge.svg?branch=master)](https://travis-ci.org/hecom-rn/Badge)\n\n这是一个角标的UI组件，有四种可能：\n\n* 没有数字，只有一个圆圈，有外层隔离间隔。\n* 没有数字，只有一个圆圈，无外层隔离间隔。\n* 有数字，有外层隔离间隔。\n* 有数字，无外层隔离间隔。\n\n外层隔离间隔，是在数字视图外面再多上一层间隔，比如红色中心圆圈外面有一圈白色间隔。\n\n**属性**：\n\n* `count: number`：展示的数字。\n* `maxCount: number`：计数的最大值，如\"99\"。如果比最大值大，则显示\"99+\"。\n* `radius: number`：数字两侧的圆角的半径大小。\n* `bgColor: string`：数字的背景色。\n* `outSpace: number`：外层与内层直接的间隔。\n* `outBgColor: string`：外层的背景色。\n* `innerVerticalSpace: number`：数字与内层圆圈的上下边距，用于计算字号。\n* `style: any`：自定义外部样式。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhecom-rn%2Fbadge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhecom-rn%2Fbadge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhecom-rn%2Fbadge/lists"}