Skip to content

Commit cf2114e

Browse files
committed
fix(core): 修复shiki主题颜色问题
1 parent 74ab0e2 commit cf2114e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/core/src/components/XMarkdownCore/shared/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const DEFAULT_PROPS = {
3030
sanitizeOptions: () => ({}),
3131
mermaidConfig: () => ({}),
3232
langs: () => [],
33-
defaultThemeMode: 'light' as 'light' | 'dark',
33+
defaultThemeMode: '' as 'light' | 'dark',
3434
themes: () => ({ ...shikiThemeDefault }),
3535
colorReplacements: () => ({}),
3636
needViewCodeBtn: true,

packages/core/src/stories/BubbleList/CustomSolt.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ onMounted(() => {
102102
:src="item.avatar"
103103
class="avatar"
104104
:style="{ width: item.avatarSize, height: item.avatarSize }"
105-
/>
105+
>
106106
</template>
107107

108108
<template #header="{ item }">
@@ -121,7 +121,6 @@ onMounted(() => {
121121
<XMarkdown
122122
v-if="item.role === 'ai'"
123123
:markdown="item.content ?? ''"
124-
default-theme-mode="dark"
125124
/>
126125
<span v-else>{{ item.content }} </span>
127126
</div>

0 commit comments

Comments
 (0)