feat(breadcrumb): 支持 onNavigate 接管点击(SPA 路由)

- 可选 prop,不传时保持普通链接
- 文档契约 + props 表 + 变更记录同步
This commit is contained in:
stash
2026-10-29 11:26:20 +08:00
parent 52296b3368
commit 12e3047f1a
3 changed files with 26 additions and 6 deletions
+1
View File
@@ -51,6 +51,7 @@ export function Breadcrumbs() {
rows={[
{ name: 'items', type: 'BreadcrumbItem[]', required: true, desc: '{ label, href? }[]' },
{ name: 'separator', type: 'ReactNode', defaultValue: "'/'", desc: '分隔符' },
{ name: 'onNavigate', type: '(href: string) => void', desc: '接管点击(SPA 路由),不传则整页跳转' },
]}
/>
</Section>