Skip to content

Commit c855e3a

Browse files
committed
fix: Ajusta a forma como o slot de label é utilizado no baseInput
1 parent 5a5f74e commit c855e3a

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

src/components/BaseInput.vue

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,20 @@
2222
</CdsBaseMobileInput>
2323

2424
<template v-else>
25-
<template
26-
v-if="useHasSlot('label')"
27-
>
28-
<slot name="label" />
29-
</template>
30-
31-
<CdsLabel
32-
v-if="!hideLabelInput"
33-
:text="label"
34-
:fluid="fluid"
35-
:for="componentId"
36-
:required="required"
37-
:tooltip="tooltip"
38-
:tooltip-icon="tooltipIcon"
39-
:support-link="supportLink"
40-
:support-link-url="supportLinkUrl"
41-
@support-link-click="emits('supportLinkClick')"
42-
/>
43-
25+
<slot name="label">
26+
<CdsLabel
27+
v-if="!hideLabelInput"
28+
:text="label"
29+
:fluid="fluid"
30+
:for="componentId"
31+
:required="required"
32+
:tooltip="tooltip"
33+
:tooltip-icon="tooltipIcon"
34+
:support-link="supportLink"
35+
:support-link-url="supportLinkUrl"
36+
@support-link-click="emits('supportLinkClick')"
37+
/>
38+
</slot>
4439
<div
4540
:class="baseInputClass"
4641
@click="handleClick"

0 commit comments

Comments
 (0)