fix(doc of section): fix page error of section document

This commit is contained in:
Sagi 2022-10-07 14:27:32 +08:00
parent 5ecce1a26a
commit 1ca866a44d
2 changed files with 3 additions and 5 deletions

View File

@ -79,7 +79,7 @@ export default defineComponent({
{shouldShowHeaderTitle.value && (
<div class="f-title">
<h4 class="f-title-text">{mainTitle.value}</h4>
{shouldShowSubHeaderTitle.value && <span>{subTitle}</span>}
{shouldShowSubHeaderTitle.value && <span>{subTitle.value}</span>}
</div>
)}
</div>

View File

@ -11,10 +11,8 @@ Section 组件为开发者提供了一个具有标题的组件容器。
import { ref } from 'vue';
</script>
<template>
<f-section main-title="This is a section title">
<div>
<span>This is setion content.</span>
</div>
<f-section main-title="This is section title">
<div>This is section component.</div>
</f-section>
</template>
```