mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-06-04 20:42:27 +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
|
// remove the minimum indent from each line
|
||||||
const stringContent = contentLines.map(line => line.slice(minIndent)).join('\n');
|
const stringContent = contentLines.map(line => line.slice(minIndent)).join('\n');
|
||||||
|
|
||||||
return stringContent;
|
return stringContent;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
@ -72,9 +72,7 @@ defineProps({
|
|||||||
|
|
||||||
<template v-if="slots.code">
|
<template v-if="slots.code">
|
||||||
<div class="p-4 overflow-auto">
|
<div class="p-4 overflow-auto">
|
||||||
<ClientOnly>
|
<LazyShiki class="text-sm" :lang="lang" :code="codeSlotContent" />
|
||||||
<Shiki class="text-sm" :lang="lang" :code="codeSlotContent" />
|
|
||||||
</ClientOnly>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user