-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
270 additions
and
759 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
packages/nutui-taro-demo/src/exhibition/pages/badge/basic.vue
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,16 @@ | ||
<template> | ||
<div> | ||
<nut-badge :value="8"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge :value="76"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge value="NEW"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge dot> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
</div> | ||
</template> |
16 changes: 16 additions & 0 deletions
16
packages/nutui-taro-demo/src/exhibition/pages/badge/color.vue
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,16 @@ | ||
<template> | ||
<div> | ||
<nut-badge :value="8" color="skyblue"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge :value="76" color="green"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge value="NEW" color="purple"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge dot color="blue"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
</div> | ||
</template> |
26 changes: 26 additions & 0 deletions
26
packages/nutui-taro-demo/src/exhibition/pages/badge/icon.vue
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> | ||
<nut-badge> | ||
<template #icon> | ||
<Check color="#ffffff" size="12px"></Check> | ||
</template> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge> | ||
<template #icon> | ||
<Link color="#ffffff" size="12px"></Link> | ||
</template> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge> | ||
<template #icon> | ||
<Download color="#ffffff" size="12px"></Download> | ||
</template> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { Check, Link, Download } from '@nutui/icons-vue-taro'; | ||
</script> |
121 changes: 35 additions & 86 deletions
121
packages/nutui-taro-demo/src/exhibition/pages/badge/index.vue
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
13 changes: 13 additions & 0 deletions
13
packages/nutui-taro-demo/src/exhibition/pages/badge/max.vue
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,13 @@ | ||
<template> | ||
<div> | ||
<nut-badge :value="200" :max="9"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge :value="200" :max="20"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge :value="200" :max="99"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
</div> | ||
</template> |
13 changes: 13 additions & 0 deletions
13
packages/nutui-taro-demo/src/exhibition/pages/badge/position.vue
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,13 @@ | ||
<template> | ||
<div> | ||
<nut-badge :value="8" top="5" right="5"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge :value="76" top="10" right="10"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge value="NEW"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
</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,16 @@ | ||
<template> | ||
<div> | ||
<nut-badge :value="8"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge :value="76"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge value="NEW"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge dot> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
</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,16 @@ | ||
<template> | ||
<div> | ||
<nut-badge :value="8" color="skyblue"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge :value="76" color="green"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge value="NEW" color="purple"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
<nut-badge dot color="blue"> | ||
<nut-avatar shape="square"></nut-avatar> | ||
</nut-badge> | ||
</div> | ||
</template> |
Oops, something went wrong.