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

1.0.3 #1775

Merged
merged 84 commits into from
Mar 14, 2023
Merged

1.0.3 #1775

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
fb4a31a
fix(SwipeCell): fix docs (#1634)
anlyyao Feb 22, 2023
5da469e
fix(Dialog): fix button style (#1633)
anlyyao Feb 22, 2023
0813b23
fix(loading): update loading color (#1627)
LeeJim Feb 22, 2023
2c96f51
Refactor/loading remove (#1626)
LeeJim Feb 22, 2023
61d9a43
chore(Cell): adjust className for hover-class (#1635)
anlyyao Feb 22, 2023
488c6ff
chore(Picker&&DateTimePicker): remove footer slot (#1631)
anlyyao Feb 22, 2023
bfcf649
chore(Radio): align attribute is renamed to placement (#1630)
anlyyao Feb 22, 2023
8f1c4b0
chore(Checkbox): align attribute is renamed to placement (#1629)
anlyyao Feb 22, 2023
cfddfb3
chore(Search): remove the right-icon and add the clearable attribute …
anlyyao Feb 22, 2023
86f4742
feat(button): support suffix slot (#1624)
LeeJim Feb 22, 2023
062ef43
chore(Avatar): remove bordered attribute (#1632)
anlyyao Feb 23, 2023
221aba8
chore(Message): remove action and add the link attribute (#1637)
anlyyao Feb 23, 2023
ff77931
fix(navbar): resolve capsule event currectly (#1641)
LeeJim Feb 23, 2023
c787a51
chore(Footer): copyright attribute is renamed to text (#1642)
anlyyao Feb 23, 2023
e810c0d
fix(dialog): resolve word misspelling (#1644)
jarmywang Feb 23, 2023
ee6b48b
chore(CountDown): remove hightlight theme (#1645)
anlyyao Feb 23, 2023
dfbf99e
fix(slider): 规范无障碍语义. (#1388)
byq1213 Feb 23, 2023
7fc0312
docs(steps): update api
LeeJim Feb 23, 2023
82e96e7
fix(toast): replace fail theme with error (#1647)
LeeJim Feb 23, 2023
41f0689
docs: update api & changelog
LeeJim Feb 24, 2023
a0afded
fix: fix overview.md errors (#1651)
anlyyao Feb 24, 2023
e2c7b6a
fix: update pages
LeeJim Feb 24, 2023
7d3ccdb
fix(collapse): resolve disabled color (#1648)
LeeJim Feb 24, 2023
7b911df
chore(Link): remove status and add disabled and hover (#1652)
anlyyao Feb 24, 2023
62e12ad
feat(Drawer): add hover style (#1673)
anlyyao Feb 27, 2023
c649a1d
fix(Tag): use catch to bind events (#1669)
anlyyao Feb 27, 2023
2fb8cea
fix(rate): remove variant property and update tips disapper logic (#1…
LeeJim Feb 27, 2023
e191668
fix(BackTop): fix icon (#1660)
anlyyao Feb 27, 2023
03055b0
fix(Picker): update demo (#1661)
anlyyao Feb 27, 2023
f754cbb
fix: update sidebar of the site (#1659)
anlyyao Feb 27, 2023
8992f67
docs(common): update design docs (#1658)
anlyyao Feb 27, 2023
79d9ea5
fix(SideBar): fix inaccurate positioning when the page was init (#1675)
anlyyao Feb 27, 2023
1009e42
fix(slider): remove colors and disabledColor property (#1676)
LeeJim Feb 27, 2023
23cd33a
feat(AvatarGroup): add border style (#1678)
anlyyao Feb 27, 2023
4a3270c
fix(dialog): resolve action tsd error and support buttonLayout (#1654…
jarmywang Feb 27, 2023
0186186
chore(NoticeBar): extra attribute is renamed to operation (#1638)
anlyyao Feb 27, 2023
a515aef
fix(Cell): resolve demo problems (#1679)
anlyyao Feb 27, 2023
a2ee5b2
chore: publish v1.0.0 (#1680)
LeeJim Feb 27, 2023
e8d589a
docs: update changelog
LeeJim Feb 28, 2023
8ec6f71
chore: update common
LeeJim Feb 28, 2023
eb80e2e
fix(action-sheet): add close event (#1683)
LeeJim Feb 28, 2023
7f50b82
fix(cascader): resolve events (#1685)
LeeJim Feb 28, 2023
aef1bff
fix(drawer): resolve close event (#1686)
LeeJim Feb 28, 2023
cb1bbef
feat(picker): add close event (#1687)
LeeJim Feb 28, 2023
46fa5bf
fix(Message): fix t-class-link invalid (#1690)
anlyyao Mar 1, 2023
5a04c66
fix: fix docs (#1688)
anlyyao Mar 1, 2023
c9f9ad5
feat(upload): support aria (#1238)
zhangpaopao0609 Mar 1, 2023
9bf9e0f
fix: resolve radio placement (#1693)
LeeJim Mar 1, 2023
b30c83a
fix(Message): fix demo for message (#1694)
anlyyao Mar 1, 2023
79d4126
chore: publish v1.0.1 (#1695)
LeeJim Mar 1, 2023
bd6a0e9
Merge branch 'main' into develop
LeeJim Mar 2, 2023
b57419e
chore: add test:snap-update (#1706)
anlyyao Mar 2, 2023
76dbab8
fix: update api for checkbox and radio (#1707)
LeeJim Mar 6, 2023
9f53b78
fix(action-sheet): resolve click event (#1726)
LeeJim Mar 6, 2023
df7b9bd
feat: update used page (#1734)
LeeJim Mar 7, 2023
c92849d
fix(Swiper): resolve border radius invalid (#1733)
anlyyao Mar 7, 2023
764a156
docs: update changelog
LeeJim Mar 7, 2023
010f34d
fix(navbar): resolve extenal class (#1735)
LeeJim Mar 7, 2023
efe64e5
docs(Footer): update docs (#1737)
anlyyao Mar 7, 2023
5009073
fix(Swiper): the image is disappears when the version is lower than 2…
anlyyao Mar 7, 2023
61a2ff8
chore(ImageViewer): resolved imageViewer display is incomplete (#1656)
anlyyao Mar 7, 2023
dc4fb64
fix(Input): resolve maxLength invalid (#1732)
anlyyao Mar 7, 2023
9ba0038
chore: publish v1.0.2 (#1740)
LeeJim Mar 7, 2023
c024338
Merge branch 'main' into develop
LeeJim Mar 8, 2023
1deb8ce
fix(dropdown-menu): resolve label and radio icon placement (#1748)
LeeJim Mar 8, 2023
b3a3cef
Update README.md (#1751)
hezhi3f Mar 9, 2023
be20b2f
fix(popup): resolve close can not tap (#1754)
jarmywang Mar 9, 2023
8dacfe8
fix(calendar): resolve format property reactive (#1753)
LeeJim Mar 9, 2023
6c6d3ca
fix: fix docs for upload and icon components (#1752)
anlyyao Mar 9, 2023
24f33b8
feat(picker): support keys property (#1759)
LeeJim Mar 11, 2023
6fb5a5d
fix(checkbox): resolve check all when some is diabled (#1766)
LeeJim Mar 13, 2023
e55efb2
fix(badge): resolve color property (#1764)
LeeJim Mar 13, 2023
ce1214b
feat(Input): support bindnicknamereview (#1755)
anlyyao Mar 13, 2023
87af653
fix(upload): make size-limit support object (#1763)
LeeJim Mar 13, 2023
fe550ec
fix(Button): fix disabled invalid (#1739)
anlyyao Mar 13, 2023
8a262e4
fix(grid | cell | tabs | tabbar | sliderBar): 有 badge,有新的消息、不朗读异常 (#1…
yaogengzhu Mar 13, 2023
c12d11d
chore: update projects who use tdesign
LeeJim Mar 14, 2023
934e981
fix(Cell): resolve the incomplete display of note content (#1769)
anlyyao Mar 14, 2023
38dd037
feat(wxs): the style attr supports camel case (#1744)
anlyyao Mar 14, 2023
96a3301
feat(popup): support background,border-radius,safe-area (#1758)
jarmywang Mar 14, 2023
a05cc67
fix(Progress): resolve slot invalid when label is true (#1771)
anlyyao Mar 14, 2023
98a0eb2
fix(grid): resolve image slot (#1772)
LeeJim Mar 14, 2023
875b28b
chore: publish v1.0.3 (#1774)
LeeJim Mar 14, 2023
6c9a9a9
Merge branch 'main' into develop
LeeJim Mar 14, 2023
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
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ toc: false
docClass: timeline
---

## 🌈 1.0.3 `2023-03-14`
### 🚀 Features
- `Picker`: 新增支持 keys 属性 @LeeJim ([#1759](https://github.com/Tencent/tdesign-miniprogram/pull/1759))
- `Input`: 支持 `nicknamereview` 事件 @anlyyao ([#1755](https://github.com/Tencent/tdesign-miniprogram/pull/1755))
- `Popup`: 增加默认圆角、默认背景色、安全底边距 @jarmywang ([#1758](https://github.com/Tencent/tdesign-miniprogram/pull/1758))
### 🐞 Bug Fixes
- `DropdownMenu`: 修复 label 的展示逻辑 @LeeJim ([#1748](https://github.com/Tencent/tdesign-miniprogram/pull/1748))
- `DropdownMenu`: 修复 radio 图标的展示位置 @LeeJim ([#1748](https://github.com/Tencent/tdesign-miniprogram/pull/1748))
- `Popup`: 修复关闭按钮无法点击的问题 @jarmywang ([#1754](https://github.com/Tencent/tdesign-miniprogram/pull/1754))
- `Calendar`: 修复 format 属性不是响应式的问题 @LeeJim ([#1753](https://github.com/Tencent/tdesign-miniprogram/pull/1753))
- `Checkbox`: 修复存在 disabled 选项时,全选出错的问题 @LeeJim ([#1766](https://github.com/Tencent/tdesign-miniprogram/pull/1766))
- `Badge`: 修复 shape = ribbon 时,修改 color 不能改变全部颜色的问题 @LeeJim ([#1764](https://github.com/Tencent/tdesign-miniprogram/pull/1764))
- `Upload`: 修复 sizelimit 不支持对象传参的问题 @LeeJim ([#1763](https://github.com/Tencent/tdesign-miniprogram/pull/1763))
- `Upload`: 修复 sizelimit 默认单位和文档不一致的问题,从 `B` 改成 `KB` @LeeJim ([#1763](https://github.com/Tencent/tdesign-miniprogram/pull/1763))
- `Button`: 取消 `loading` 态下的 hover 效果 @anlyyao ([#1739](https://github.com/Tencent/tdesign-miniprogram/pull/1739))
- `Button`: 事件 `tap` 仅在非加载或禁用状态时触发 @anlyyao ([#1739](https://github.com/Tencent/tdesign-miniprogram/pull/1739))
- `Badge`: 优化和不同组件组合的无障碍访问 @yaogengzhu ([#1428](https://github.com/Tencent/tdesign-miniprogram/pull/1428))
- `Cell`: 修复 `note` 内容超出被遮挡问题 @anlyyao ([#1769](https://github.com/Tencent/tdesign-miniprogram/pull/1769))
- `Progress`: 修复 label 插槽无效 @anlyyao ([#1771](https://github.com/Tencent/tdesign-miniprogram/pull/1771))
- `Grid`: 修复 grid-item 的 image 插槽不可用的问题,需传入 image = slot 才可使用插槽 @LeeJim ([#1772](https://github.com/Tencent/tdesign-miniprogram/pull/1772))

### 🚧 Others
- `Picker`: 文档中移除 render-label、columns 还不支持的属性 @LeeJim ([#1759](https://github.com/Tencent/tdesign-miniprogram/pull/1759))

## 🌈 1.0.2 `2023-03-07`
### 🐞 Bug Fixes
- `Radio`: 修复使用 options 时可传入的属性不齐的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-miniprogram",
"purename": "tdesign",
"version": "1.0.2",
"version": "1.0.3",
"description": "tdesign-miniprogram",
"title": "tdesign-ßminiprogram",
"main": "miniprogram_dist/index.js",
Expand Down
64 changes: 64 additions & 0 deletions site/data/projects.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
export default
[
{
name: '未来运动场',
tags: ['趣味游戏'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/weilaiyundongchang.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/weilaiyundongchang-code.jpg',
},
{
name: '程序员做饭指南',
tags: ['效率工具', '开源项目'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/zuofanzhinan.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/zuofanzhinan-code.jpg',
url: 'https://github.com/LeeJim/HowToCookOnMiniprogram',
},
{
name: '李宁',
tags: ['电商'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/lining.jpg'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/lining-code.jpg',
},
{
name: '美宜家',
tags: ['电商'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/meiyijia.jpg'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/meiyijia-code.jpg',
},
{
name: '沃尔玛',
tags: ['电商'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/walmart.jpg'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/walmart-code.jpg',
},
{
name: '维达',
tags: ['电商'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/weida.jpg'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/weida-code.png',
},
{
name: '小云卡片',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/xiaoyunkapian.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaoyunkapian-code.jpg'
},
{
name: '小楼助教',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao-code.png'
},
{
name: 'frmall',
tags: ['电商', '开源项目'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/frmall.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/frmall-code.jpg',
},
{
name: 'Coding 鱼塘',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/codingyutang.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/codingyutang-code.jpg',
},
]
46 changes: 6 additions & 40 deletions site/pages/used.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,50 +32,12 @@
</template>

<script lang="ts">
import { onMounted } from 'vue';
import projects from '../data/projects'

export default {
data() {
return {
projects: [
{
name: '未来运动场',
tags: ['趣味游戏'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/weilaiyundongchang.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/weilaiyundongchang-code.jpg',
},
{
name: '程序员做饭指南',
tags: ['效率工具', '开源项目'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/zuofanzhinan.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/zuofanzhinan-code.jpg',
url: 'https://github.com/LeeJim/HowToCookOnMiniprogram',
},
{
name: '小云卡片',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/xiaoyunkapian.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaoyunkapian-code.jpg'
},
{
name: '小楼助教',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao-code.png'
},
{
name: 'frmall',
tags: ['电商', '开源项目'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/frmall.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/frmall-code.jpg',
},
{
name: 'Coding 鱼塘',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/codingyutang.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/codingyutang-code.jpg',
},
]
projects,
}
},
mounted() {
Expand Down Expand Up @@ -139,6 +101,10 @@ ul {
&__link {
text-decoration: none;

&:visited {
color: #181818;
}

&:hover {
color: var(--brand-main);
}
Expand Down
4 changes: 0 additions & 4 deletions src/action-sheet/action-sheet.less
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,4 @@
}
}
}
&__safe {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
}
2 changes: 1 addition & 1 deletion src/action-sheet/action-sheet.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</view>
</view>
<slot />
<view wx:if="{{showCancel}}" class="{{classPrefix}}__footer {{classPrefix}}__safe">
<view wx:if="{{showCancel}}" class="{{classPrefix}}__footer">
<view class="{{classPrefix}}__gap-{{theme}}" />
<view
class="{{classPrefix}}__cancel {{prefix}}-class-cancel"
Expand Down
8 changes: 8 additions & 0 deletions src/badge/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ exports[`Badge Badge base demo works fine 1`] = `
}}"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand Down Expand Up @@ -80,6 +81,7 @@ exports[`Badge Badge base demo works fine 1`] = `
}}"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand Down Expand Up @@ -108,6 +110,7 @@ exports[`Badge Badge base demo works fine 1`] = `
class="demo-wrapper"
>
<t-badge
ariaRole="button"
count="NEW"
offset="{{
Array [
Expand All @@ -117,6 +120,7 @@ exports[`Badge Badge base demo works fine 1`] = `
}}"
>
<t-button
ariaLabel="通知"
icon="notification"
shape="square"
size="large"
Expand Down Expand Up @@ -195,6 +199,7 @@ exports[`Badge Badge theme demo works fine 1`] = `
}}"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand All @@ -219,6 +224,7 @@ exports[`Badge Badge theme demo works fine 1`] = `
shape="square"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand All @@ -233,10 +239,12 @@ exports[`Badge Badge theme demo works fine 1`] = `
class="demo-wrapper"
>
<t-badge
ariaRole="button"
count="领积分"
shape="bubble"
>
<t-button
ariaLabel="商店"
icon="shop"
shape="square"
size="large"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ exports[`Badge Badge base demo works fine 1`] = `
}}"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand Down Expand Up @@ -80,6 +81,7 @@ exports[`Badge Badge base demo works fine 1`] = `
}}"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand Down Expand Up @@ -108,6 +110,7 @@ exports[`Badge Badge base demo works fine 1`] = `
class="demo-wrapper"
>
<t-badge
ariaRole="button"
count="NEW"
offset="{{
Array [
Expand All @@ -117,6 +120,7 @@ exports[`Badge Badge base demo works fine 1`] = `
}}"
>
<t-button
ariaLabel="通知"
icon="notification"
shape="square"
size="large"
Expand Down Expand Up @@ -195,6 +199,7 @@ exports[`Badge Badge theme demo works fine 1`] = `
}}"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand All @@ -219,6 +224,7 @@ exports[`Badge Badge theme demo works fine 1`] = `
shape="square"
>
<t-icon
ariaLabel="通知"
name="notification"
size="24"
/>
Expand All @@ -233,10 +239,12 @@ exports[`Badge Badge theme demo works fine 1`] = `
class="demo-wrapper"
>
<t-badge
ariaRole="button"
count="领积分"
shape="bubble"
>
<t-button
ariaLabel="商店"
icon="shop"
shape="square"
size="large"
Expand Down
8 changes: 4 additions & 4 deletions src/badge/_example/base/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<view class="demo-wrapper">
<t-badge dot offset="{{ [-4, 4] }}" class="wrapper" content="消息" />
<t-badge dot offset="{{ [1, -1] }}" class="wrapper">
<t-icon name="notification" size="24" />
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
<t-badge dot offset="{{ [1, 1] }}" class="wrapper">
<t-button>按钮</t-button>
Expand All @@ -13,7 +13,7 @@
<view class="demo-wrapper">
<t-badge count="8" content="消息" offset="{{ [-8] }}" class="wrapper" />
<t-badge count="2" offset="{{ [-2, -2] }}" class="wrapper">
<t-icon name="notification" size="24" />
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
<t-badge count="8" offset="{{ [2, 2] }}" class="wrapper">
<t-button>按钮</t-button>
Expand All @@ -22,7 +22,7 @@

<view class="demo-desc">自定义徽标</view>
<view class="demo-wrapper">
<t-badge count="NEW" offset="{{ [0, 2] }}">
<t-button icon="notification" shape="square" size="large" />
<t-badge count="NEW" offset="{{ [0, 2] }}" ariaRole="button">
<t-button icon="notification" ariaLabel="通知" shape="square" size="large" />
</t-badge>
</view>
15 changes: 11 additions & 4 deletions src/badge/_example/theme/index.wxml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
<!--
由于 button 被 t-badeg包裹,t-badge 中存在 role="option", 导致button中的 role=button 失去作用。相当于button 被申明了 role=presentation
因此提升了 aria-role=button 到 t-badge上
可参考: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/option_role
https://www.zhangxinxu.com/wordpress/2017/01/voiceover-aria-web-accessible-iphone/
-->

<view class="demo-desc">圆形徽标</view>
<view class="demo-wrapper">
<t-badge count="2" offset="{{ [-2, -2] }}">
<t-icon name="notification" size="24" />
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
</view>

<view class="demo-desc">方形徽标</view>
<view class="demo-wrapper">
<t-badge count="2" shape="square" offset="{{ [-2, -2] }}">
<t-icon name="notification" size="24" />
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
</view>

<view class="demo-desc">气泡徽标</view>
<view class="demo-wrapper">
<t-badge count="领积分" shape="bubble">
<t-button icon="shop" shape="square" size="large" />
<t-badge count="领积分" shape="bubble" ariaRole="button">
<t-button icon="shop" ariaLabel="商店" shape="square" size="large" />
</t-badge>
</view>

Expand Down
Loading