mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
1.0 KiB
1.0 KiB
title, author, icon, createTime, permalink
| title | author | icon | createTime | permalink |
|---|---|---|---|---|
| 客户端 | pengzhanbo | nimbus:browser | 2024/03/07 21:58:48 | /guide/api/client/ |
使用
import { useDarkMode } from 'vuepress-theme-plume/client'
useDarkMode()
- 类型:
() => Ref<boolean>
Composable useDarkMode() 用于获取当前的 dark 状态。
import { useDarkMode } from 'vuepress-theme-plume/client'
const isDark = useDarkMode()
<HomeBox />
- 类型:
Component
自定义首页时,提供给 区域 的 包装容器。
Props
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| type | string | '' |
区域类型 |
| full | boolean | false |
是否全屏 |
| background-image | string | '' |
区域背景图片 |
| background-attachment | 'fixed'|'local' |
'local' |
区域背景定位方式 |