We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41565bc commit b9c699dCopy full SHA for b9c699d
src/plugin/VCodeBlock.vue
@@ -10,7 +10,14 @@
10
:class="labelClasses"
11
>
12
<template v-if="slots.label">
13
- <slot name="label" />
+ <slot
14
+ name="label"
15
+ v-bind="{
16
+ copyCode,
17
+ copyStatus,
18
+ runCode,
19
+ }"
20
+ />
21
</template>
22
<template v-else>{{ props.label }}</template>
23
</div>
@@ -67,7 +74,12 @@
67
74
@click="copyCode"
68
75
69
76
<template v-if="slots.copyButton">
70
- <slot name="copyButton" />
77
78
+ name="copyButton"
79
80
81
82
71
83
72
84
<template v-else>
73
85
<StatusIcons
0 commit comments