Skip to content

Commit 14cf293

Browse files
Fix props for use in global createVCodeBlock options
1 parent cca62f7 commit 14cf293

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugin/VCodeBlock.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const renderedCode = ref('');
184184
const runTextValue = ref<string>('');
185185
const useTheme = ref<boolean | string>('');
186186
187-
const { cssPath, label, tabs } = toRefs(settings.value);
187+
const { copyButton, copyIcons, copyTab, cssPath, label, runTab, tabs } = toRefs(settings.value);
188188
189189
190190
// -------------------------------------------------- Computed //
@@ -259,11 +259,11 @@ const headerStyles = computed<StyleValue>(() => {
259259
260260
const preTagStyles = computed<StyleValue>(() => {
261261
return usePreTagStyles({
262-
copyTab: settings.value.copyTab,
262+
copyTab: copyTab.value,
263263
height: settings.value.height,
264264
maxHeight: settings.value.maxHeight,
265265
radius: settings.value.codeBlockRadius,
266-
runTab: settings.value.runTab,
266+
runTab: runTab.value,
267267
tabs: tabs.value,
268268
useTheme,
269269
});

0 commit comments

Comments
 (0)