Skip to content

Commit

Permalink
feat(badge): using new style (#1004)
Browse files Browse the repository at this point in the history
* feat(badge): using new style

* test(badge): update snapshot

* feat(badge): using new style

* test(badge): update snapshot

* test(badge): update snapshot
  • Loading branch information
LeeJim authored Nov 21, 2022
1 parent 2126e89 commit e64309b
Show file tree
Hide file tree
Showing 37 changed files with 383 additions and 427 deletions.
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

0 comments on commit e64309b

Please sign in to comment.