Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(badge): using new style #1004

Merged
merged 5 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/badge/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ dot | Boolean | false | \- | N
external-classes | Array | - | `['t-class', 't-class-content', 't-class-count']` | N
max-count | Number | 99 | \- | N
offset | Array | - | Typescript:`Array<string \| number>` | N
shape | String | circle | options:circle/square/round/ribbon | N
shape | String | circle | options:circle/round/ribbon/bubble | N
show-zero | Boolean | false | \- | N
size | String | medium | options:small/medium | N
20 changes: 6 additions & 14 deletions src/badge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,17 @@ isComponent: true

## 代码演示

### 普通徽标

<img src="https://tdesign.gtimg.com/miniprogram/readme/badge-1.png" width="375px" height="50%">
### 组件类型

{{ base }}

### 按钮徽标

{{ button }}

### 单行徽标

{{ cell }}
### 组件样式

### 标签栏徽标
{{ theme }}

<img src="https://tdesign.gtimg.com/miniprogram/readme/badge-3.png" width="375px" height="50%">
### 组件尺寸

{{ tab-item }}
{{ size }}

## API
### Badge Props
Expand All @@ -51,6 +43,6 @@ dot | Boolean | false | 是否为红点 | N
external-classes | Array | - | 组件类名,分别用于设置外层元素、默认内容、右上角内容等元素类名。`['t-class', 't-class-content', 't-class-count']` | N
max-count | Number | 99 | 封顶的数字值 | N
offset | Array | - | 设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']。TS 类型:`Array<string \| number>` | N
shape | String | circle | 形状。可选项:circle/square/round/ribbon | N
shape | String | circle | 形状。可选项:circle/round/ribbon/bubble | N
show-zero | Boolean | false | 当数值为 0 时,是否展示徽标 | N
size | String | medium | 尺寸。可选项:small/medium | N
Loading