Skip to content

Breadcrumb 面包屑 ​

显示当前页面在系统层级结构中的位置,支持数据驱动 items 与声明式 VbBreadcrumbItem 两种用法。

基础用法 ​

vue
<template>
  <VbBreadcrumb
    :items="[
      { key: 'home', label: '首页', icon: 'home' },
      { key: 'system', label: '系统管理' },
      { key: 'users', label: '用户管理' },
    ]"
    @select="handleSelect"
  />
</template>

API ​

属性名说明类型默认值
items数据驱动模式下的面包屑项数组BreadcrumbItemOption[]—
separator自定义分隔符string'/'

基于 MIT 协议开源发布 · @vobo-design/ui v0.5.0