-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from teal-front/feature/badge-demo
feat: 示例代码改造-badge组件
- Loading branch information
Showing
13 changed files
with
736 additions
and
1,331 deletions.
There are no files selected for viewing
1,681 changes: 639 additions & 1,042 deletions
1,681
src/badge/__test__/__snapshots__/demo.test.jsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div class="tdesign-mobile-demo"> | ||
<div class="badge-demo"> | ||
<div class="badge-item"> | ||
<t-badge dot>消息</t-badge> | ||
</div> | ||
<div class="badge-item"> | ||
<t-badge count="16">消息</t-badge> | ||
</div> | ||
<div class="badge-item"> | ||
<t-badge count="NEW">消息</t-badge> | ||
</div> | ||
<div class="badge-item"> | ||
<t-badge count="···">消息</t-badge> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div class="tdesign-mobile-demo"> | ||
<div class="badge-demo"> | ||
<div class="badge-item"> | ||
<t-badge dot> | ||
<t-button size="small" variant="outline">小按钮</t-button> | ||
</t-badge> | ||
</div> | ||
<div class="badge-item"> | ||
<t-badge count="16"> | ||
<t-button size="small" variant="outline">小按钮</t-button> | ||
</t-badge> | ||
</div> | ||
<div class="badge-item"> | ||
<t-badge count="NEW"> | ||
<t-button size="small" variant="outline">小按钮</t-button> | ||
</t-badge> | ||
</div> | ||
<div class="badge-item"> | ||
<t-badge count="···"> | ||
<t-button size="small" variant="outline">小按钮</t-button> | ||
</t-badge> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<template> | ||
<div> | ||
<t-cell-group style="overflow: hidden"> | ||
<t-cell title="单行标题" arrow> | ||
<template #note> | ||
<t-badge dot></t-badge> | ||
</template> | ||
</t-cell> | ||
<t-cell title="单行标题" arrow> | ||
<template #note> | ||
<t-badge count="16"></t-badge> | ||
</template> | ||
</t-cell> | ||
<t-cell title="单行标题" arrow> | ||
<template #note> | ||
<t-badge count="NEW" shape="round" /> | ||
<t-badge count="NEW" style="margin-left: 8px" /> | ||
</template> | ||
</t-cell> | ||
<t-cell title="单行标题"> | ||
<template #note> | ||
<t-badge shape="ribbon" count="NEW"></t-badge> | ||
</template> | ||
</t-cell> | ||
</t-cell-group> | ||
</div> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.