Skip to content

Commit bbf4d79

Browse files
Add binding props to tabs slot
1 parent 463b748 commit bbf4d79

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/plugin/VCodeBlock.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@
2020
:style="tabGroupStyle"
2121
>
2222
<template v-if="slots.tabs">
23-
<slot name="tabs" />
23+
<slot
24+
name="tabs"
25+
v-bind="{
26+
copyCode,
27+
copyStatus,
28+
runCode,
29+
}"
30+
/>
2431
</template>
2532
<template v-else>
2633
<!-- ======================================== Copy Code Tab/Button -->

0 commit comments

Comments
 (0)