mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
docs: update docs
This commit is contained in:
parent
9ef85fe858
commit
c589252ea7
@ -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>
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user