Simplify syntax of InputHelp

This commit is contained in:
Julien Nahum
2024-05-27 11:27:46 +02:00
parent 53f2e99ec3
commit ca159804f9
3 changed files with 26 additions and 30 deletions

View File

@@ -7,7 +7,7 @@
:class="helpClasses"
class="grow flex"
>
<slot name="help">
<slot>
<span
v-if="help"
class="field-help"
@@ -29,6 +29,6 @@ const props = defineProps({
})
const shouldRender = computed(() => {
return props.help || !!slots.help || !!slots['after-help']
return props.help || !!slots.default || !!slots['after-help']
})
</script>