fix: 更新 useTheme 钩子中的主题键为 'antdvtheme'
parent
c6eb1d3b03
commit
509cbc4760
|
|
@ -3,9 +3,8 @@ import { defaultConfig } from '../../theme/internal';
|
||||||
import type { Ref } from 'vue';
|
import type { Ref } from 'vue';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import devWarning from '../../vc-util/warning';
|
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>) {
|
export default function useTheme(theme?: Ref<ThemeConfig>, parentTheme?: Ref<ThemeConfig>) {
|
||||||
const themeConfig = computed(() => theme?.value || {});
|
const themeConfig = computed(() => theme?.value || {});
|
||||||
const parentThemeConfig = computed<ThemeConfig>(() =>
|
const parentThemeConfig = computed<ThemeConfig>(() =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue