Components
PrevNext 翻页导航
用于长篇指南、API 手册与教程底部的上下篇连续导航卡片。
基础双向导航
提供左右两侧卡片,支持上一篇与下一篇标题与描述。
<PrevNext
:prev="{ title: 'TreeView 树形视图', to: '/components/tree-view' }"
:next="{ title: 'Callout 提示块', to: '/components/callout' }"
/>单侧导航(首末篇)
当只有上一篇或下一篇时,空缺侧保持布局优雅对齐。
<PrevNext
:next="{ title: '开始快速上手', to: '/components/steps' }"
next-label="下一章"
/>API 参考
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
prev | PrevNextItem | — | 上一篇配置:title、href?、to?、description?。 |
next | PrevNextItem | — | 下一篇配置:title、href?、to?、description?。 |
prevLabel | string | 依国际化配置 | 上一篇小标签文本。 |
nextLabel | string | 依国际化配置 | 下一篇小标签文本。 |