2023-04-21 13:22:26 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs"> </DocSectionText>
|
2023-08-07 13:29:11 +00:00
|
|
|
<div class="card flex justify-content-center align-items-center gap-2">
|
|
|
|
<Badge
|
|
|
|
value="2"
|
|
|
|
:pt="{
|
|
|
|
root: 'bg-primary border-round-xl'
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
<i
|
|
|
|
v-badge.danger="{
|
|
|
|
value: '5+',
|
|
|
|
pt: {
|
|
|
|
root: 'bg-primary'
|
|
|
|
}
|
|
|
|
}"
|
|
|
|
class="pi pi-calendar text-4xl"
|
|
|
|
/>
|
2023-04-21 13:22:26 +00:00
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
2023-08-07 13:29:11 +00:00
|
|
|
// component
|
|
|
|
<Badge
|
|
|
|
value="2"
|
2023-04-21 13:22:26 +00:00
|
|
|
:pt="{
|
2023-08-07 13:29:11 +00:00
|
|
|
root: 'bg-primary border-round-xl'
|
2023-04-21 13:22:26 +00:00
|
|
|
}"
|
2023-08-07 13:29:11 +00:00
|
|
|
/>
|
|
|
|
|
|
|
|
// directive
|
|
|
|
<i
|
|
|
|
v-badge.danger="{
|
|
|
|
value: '5+',
|
|
|
|
pt: {
|
|
|
|
root: 'bg-primary'
|
|
|
|
}
|
|
|
|
}"
|
|
|
|
class="pi pi-calendar text-4xl"
|
2023-10-15 09:38:39 +00:00
|
|
|
/>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-08-07 13:29:11 +00:00
|
|
|
<div class="card flex justify-content-center align-items-center gap-2">
|
|
|
|
// component
|
|
|
|
<Badge
|
|
|
|
value="2"
|
|
|
|
:pt="{
|
|
|
|
root: 'bg-primary border-round-xl'
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
// directive
|
|
|
|
<i
|
|
|
|
v-badge.danger="{
|
|
|
|
value: '5+',
|
|
|
|
pt: {
|
|
|
|
root: 'bg-primary'
|
|
|
|
}
|
|
|
|
}"
|
|
|
|
class="pi pi-calendar text-4xl"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-10-15 09:38:39 +00:00
|
|
|
</template>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-08-07 13:29:11 +00:00
|
|
|
<div class="card flex justify-content-center align-items-center gap-2">
|
|
|
|
// component
|
|
|
|
<Badge
|
|
|
|
value="2"
|
|
|
|
:pt="{
|
|
|
|
root: 'bg-primary border-round-xl'
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
// directive
|
|
|
|
<i
|
|
|
|
v-badge.danger="{
|
|
|
|
value: '5+',
|
|
|
|
pt: {
|
|
|
|
root: 'bg-primary'
|
|
|
|
}
|
|
|
|
}"
|
|
|
|
class="pi pi-calendar text-4xl"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-04-21 13:22:26 +00:00
|
|
|
</template>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|