2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Severity defines the color of the badge, possible values are <i>success</i>, <i>info</i>, <i>warning</i> and <i>danger</i> in addition to the default theme color.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex flex-wrap justify-content-center gap-2">
|
|
|
|
<Badge value="2"></Badge>
|
|
|
|
<Badge value="8" severity="success"></Badge>
|
|
|
|
<Badge value="4" severity="info"></Badge>
|
|
|
|
<Badge value="12" severity="warning"></Badge>
|
|
|
|
<Badge value="3" severity="danger"></Badge>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-08-16 13:58:31 +00:00
|
|
|
basic: `<Badge value="2"></Badge>
|
2023-02-28 08:29:30 +00:00
|
|
|
<Badge value="8" severity="success"></Badge>
|
|
|
|
<Badge value="4" severity="info"></Badge>
|
|
|
|
<Badge value="12" severity="warning"></Badge>
|
|
|
|
<Badge value="3" severity="danger"></Badge>`,
|
2023-08-16 13:58:31 +00:00
|
|
|
options: `<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-wrap justify-content-center gap-2">
|
|
|
|
<Badge value="2"></Badge>
|
|
|
|
<Badge value="8" severity="success"></Badge>
|
|
|
|
<Badge value="4" severity="info"></Badge>
|
|
|
|
<Badge value="12" severity="warning"></Badge>
|
|
|
|
<Badge value="3" severity="danger"></Badge>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
<\/script>`,
|
2023-08-16 13:58:31 +00:00
|
|
|
composition: `<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-wrap justify-content-center gap-2">
|
|
|
|
<Badge value="2"></Badge>
|
|
|
|
<Badge value="8" severity="success"></Badge>
|
|
|
|
<Badge value="4" severity="info"></Badge>
|
|
|
|
<Badge value="12" severity="warning"></Badge>
|
|
|
|
<Badge value="3" severity="danger"></Badge>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|