fix: 更新 useTheme 钩子中的主题键为 'antdvtheme'

pull/8328/head
undefined 2025-08-22 18:09:47 +08:00
parent c6eb1d3b03
commit 509cbc4760
1 changed files with 1 additions and 2 deletions

View File

@ -3,9 +3,8 @@ import { defaultConfig } from '../../theme/internal';
import type { Ref } from 'vue';
import { computed } from 'vue';
import devWarning from '../../vc-util/warning';
import { cssVarPrefix } from '../../theme/util/themeTokenUtil';
const themeKey = cssVarPrefix;
const themeKey = 'antdvtheme';
export default function useTheme(theme?: Ref<ThemeConfig>, parentTheme?: Ref<ThemeConfig>) {
const themeConfig = computed(() => theme?.value || {});
const parentThemeConfig = computed<ThemeConfig>(() =>