chore(Badge): update

This commit is contained in:
Benjamin Canac
2024-03-09 19:58:35 +01:00
parent 4b75ec265b
commit 2f631845c3
3 changed files with 46 additions and 3 deletions

View File

@@ -23,8 +23,6 @@ export interface BadgeSlots {
</script>
<script setup lang="ts">
defineOptions({ inheritAttrs: false })
const props = withDefaults(defineProps<BadgeProps>(), {
as: 'span'
})
@@ -32,7 +30,7 @@ defineSlots<BadgeSlots>()
</script>
<template>
<component :is="as" v-bind="$attrs" :class="badge({ color, variant, size, class: props.class })">
<component :is="as" :class="badge({ color, variant, size, class: props.class })">
<slot>
{{ label }}
</slot>