Breadcrumb 面包屑
显示当前页面在系统层级结构中的位置,支持数据驱动 items 与声明式 VbBreadcrumbItem 两种用法。
基础用法
vue
<template>
<VbBreadcrumb
:items="[
{ key: 'home', label: '首页', icon: 'home' },
{ key: 'system', label: '系统管理' },
{ key: 'users', label: '用户管理' },
]"
@select="handleSelect"
/>
</template>1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
API
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
items | 数据驱动模式下的面包屑项数组 | BreadcrumbItemOption[] | — |
separator | 自定义分隔符 | string | '/' |