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