docs: update docs

This commit is contained in:
pengzhanbo 2024-10-12 15:40:22 +08:00
parent 9ef85fe858
commit c589252ea7

View File

@ -545,7 +545,8 @@ yarn add vuepress@next vuepress-theme-plume
```vue
<script setup lang="ts">
import { HomeBox, type PlumeHomeConfigBase } from 'vuepress-theme-plume/client'
import type { PlumeHomeConfigBase } from 'vuepress-theme-plume'
import { VPHomeBox } from 'vuepress-theme-plume/client'
const props = defineProps<PlumeHomeConfigBase & {
// 组件 props, frontmatter 中的属性将会传递给组件
@ -553,7 +554,7 @@ const props = defineProps<PlumeHomeConfigBase & {
</script>
<template>
<HomeBox
<VPHomeBox
:type="type"
:background-image="backgroundImage"
:background-attachment="backgroundAttachment"
@ -561,7 +562,7 @@ const props = defineProps<PlumeHomeConfigBase & {
>
<!-- 自定义你的内容 -->
<div>...</div>
</HomeBox>
</VPHomeBox>
</template>
```