mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-04-15 05:28:50 +08:00
🐛 fixed?
This commit is contained in:
parent
6ff37c3ebd
commit
44d582d50d
@ -37,7 +37,7 @@ const codeSlotContent = computed(() => {
|
||||
|
||||
// remove the minimum indent from each line
|
||||
const stringContent = contentLines.map(line => line.slice(minIndent)).join('\n');
|
||||
|
||||
|
||||
return stringContent;
|
||||
}
|
||||
return '';
|
||||
@ -72,9 +72,7 @@ defineProps({
|
||||
|
||||
<template v-if="slots.code">
|
||||
<div class="p-4 overflow-auto">
|
||||
<ClientOnly>
|
||||
<Shiki class="text-sm" :lang="lang" :code="codeSlotContent" />
|
||||
</ClientOnly>
|
||||
<LazyShiki class="text-sm" :lang="lang" :code="codeSlotContent" />
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user