fix(RadioGroup): rendering empty slots (#2456)

This commit is contained in:
Nestor Vera
2024-10-30 12:42:56 +01:00
committed by GitHub
parent 424efe783e
commit b6ed1c59ff
3 changed files with 50 additions and 2 deletions

View File

@@ -17,11 +17,11 @@
:ui="uiRadio"
@change="onUpdate(option.value)"
>
<template #label>
<template v-if="$slots.label" #label>
<slot name="label" v-bind="{ option, selected: option.selected }" />
</template>
<template #help>
<template v-if="$slots.help" #help>
<slot name="help" v-bind="{ option, selected: option.selected }" />
</template>
</URadio>