docs: 优化文档

This commit is contained in:
就眠儀式
2022-03-30 21:16:15 +08:00
parent f2145945cb
commit 020a260279
5 changed files with 83 additions and 36 deletions

View File

@@ -0,0 +1,17 @@
::: title 夜间模式
:::
::: describe 默认情况下, 网站主题为日间模式。若需启用深夜模式, 使用 config-provider 组件。
:::
```
<template>
<lay-config-provider :theme="theme">
<App />
</lay-config-provider>
</template>
<script setup>
const theme = ref('dark')
</script>
```