File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 18
18
v-tooltip ="option.tooltip"
19
19
style ="width: 16px; height: 16px; margin-left: 5px;"
20
20
)
21
+ template(
22
+ v-for ="option, index in option.options"
23
+ :key ="smallOption.id"
24
+ v-slot:[`radioTooltip_${index}`]
25
+ )
26
+ img(
27
+ src ="./assets/icons/question.svg"
28
+ v-if ="option.tooltip"
29
+ v-tooltip ="option.tooltip"
30
+ style ="width: 16px; height: 16px; margin-left: 5px;"
31
+ )
21
32
22
33
pre {{ data }}
23
34
</template >
Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ component(
5
5
)
6
6
template( #tooltip )
7
7
slot( name ="tooltip" )
8
+ template(
9
+ v-for ="option, index in option.options"
10
+ :key ="index"
11
+ v-slot:[`radioTooltip_${index}`]
12
+ )
13
+ slot(
14
+ :name ="`radioTooltip_${index}`"
15
+ )
8
16
template(
9
17
v-for ="slot, index in option.slots" ,
10
18
:key ="index" ,
Original file line number Diff line number Diff line change 2
2
extends ../Base/InputBase.pug
3
3
block input
4
4
.vfield__radio-wrapper
5
- .vfield__check ( v-for ="option in options" )
5
+ .vfield__check ( v-for ="option, index in options" )
6
6
input.vfield__check-input (
7
7
type ='radio'
8
8
:name ='name'
@@ -14,6 +14,9 @@ block input
14
14
label.vfield__check-label (
15
15
:for ="`${group ? group + '-' : ''}${name}-${option.value}`"
16
16
) {{option.label}}
17
+ slot(
18
+ :name ="`radioTooltip_${index}`"
19
+ )
17
20
</template >
18
21
<script lang="ts" setup>
19
22
import { useLocalValue , useFieldId , useFieldClass } from ' @/utilities/hooks' ;
You can’t perform that action at this time.
0 commit comments