Skip to content

Commit 0f693f9

Browse files
authored
docs: ✏️ 优化 WdConfigProvider 文档,解决组件命名风格问题导致失效问题 (#989)
1 parent 49e5d63 commit 0f693f9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/component/config-provider.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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({
203203
import type { ConfigProviderThemeVars } from 'wot-design-uni'
204204
import { ref } from 'vue'
205205

206-
const theme = ref<'light' | 'dark'>(false)
206+
const theme = ref<'light' | 'dark'>()
207207
const themeVars = ref<ConfigProviderThemeVars>()
208208

209209
export function useTheme(vars?: ConfigProviderThemeVars) {

0 commit comments

Comments
 (0)