tiny-vue_version0/examples/sites/demos/pc/app/badge/badge-class-composition-api...

16 lines
296 B
Vue

<template>
<tiny-badge :value="2" badge-class="custom-badge-class">我的待办</tiny-badge>
</template>
<script setup>
import { Badge as TinyBadge } from '@opentiny/vue'
</script>
<style>
.custom-badge-class {
background-color: #f2f2f3;
color: #7a7e87;
font-weight: normal;
}
</style>