File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,10 +188,10 @@ const { theme, themeVars } = useTheme({
188188
189189<template>
190190 <div>Hello AppKuVue</div>
191- <!-- 假设已注册 WdConfigProvider 组件 -->
192- <WdConfigProvider :theme="theme" :theme-vars="themeVars">
191+ <!-- 需要确保已注册 WdConfigProvider 组件 -->
192+ <wd-config-provider :theme="theme" :theme-vars="themeVars">
193193 <KuRootView />
194- </WdConfigProvider >
194+ </wd-config-provider >
195195</template>
196196```
197197
@@ -203,7 +203,7 @@ const { theme, themeVars } = useTheme({
203203import type { ConfigProviderThemeVars } from ' wot-design-uni'
204204import { ref } from ' vue'
205205
206- const theme = ref <' light' | ' dark' >(false )
206+ const theme = ref <' light' | ' dark' >()
207207const themeVars = ref <ConfigProviderThemeVars >()
208208
209209export function useTheme(vars ? : ConfigProviderThemeVars ) {
You can’t perform that action at this time.
0 commit comments