Skip to content

Commit a27e6dd

Browse files
committed
change logic of radio tooltip slot inside VField
1 parent 5ad4dc0 commit a27e6dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/VField.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ component(
66
template(#tooltip)
77
slot(name="tooltip")
88
template(
9-
v-show="option.type === 'Radio'"
10-
v-for="option, index in option.options"
9+
v-for="item, index in option.options"
1110
:key="index"
12-
v-slot:[`tooltip-${option.value}`]
11+
v-slot:[`tooltip-${item.value}`]
1312
)
1413
slot(
15-
:name="`tooltip-${option.value}`"
14+
v-if="option.type === 'Radio'"
15+
:name="`tooltip-${item.value}`"
1616
)
1717
template(
1818
v-for="slot, index in option.slots",

0 commit comments

Comments
 (0)