✨ feature: Updated Label component
This commit is contained in:
parent
a1a318510d
commit
a2b7120257
|
@ -27,7 +27,7 @@ const props = withDefaults(defineProps<IVLabel>(), {
|
|||
{{ props.label }}
|
||||
<slot name="required-type">
|
||||
<span
|
||||
v-if="'required' in $attrs && $attrs.required !== false"
|
||||
v-if="props.required"
|
||||
:class="{ 'required': props.required }"
|
||||
>*</span>
|
||||
</slot>
|
||||
|
|
Loading…
Reference in New Issue
Block a user