feat(breadcrumb): 支持 onNavigate 接管点击(SPA 路由)
- 可选 prop,不传时保持普通链接 - 文档契约 + props 表 + 变更记录同步
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user