Skip to content

Basic

vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb">
</fv-Breadcrumb>

vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false">
</fv-Breadcrumb>

  1. Char
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" separator=">">
</fv-Breadcrumb>
  1. Icon
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" separator="ChevronRightMed">
</fv-Breadcrumb>

vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" :showRoot="false">
</fv-Breadcrumb>

vue
<div style="padding: 8px; background: black;">
    <fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" theme="dark" :readOnly="false">
    </fv-Breadcrumb>
</div>

  1. Light
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" disabled>
</fv-Breadcrumb>
  1. Dark
vue
<div style="padding: 8px; background: black;">
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" theme="dark" :readOnly="false" disabled>
</fv-Breadcrumb>
</div>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
modelValueStringNoN/A字符串路径
separatorStringNo/分隔符显示, 可以是字符或图标
separatorCharStringNo/以什么字符分割路径
showRootBooleanNotrue显示根图标
rootIconStringNoFolderHorizontal根图标
readOnlyBooleanNotrue是否只读
borderColor[string(color)]NoN/A
disabledBooleanNofalse
borderRadiusNumberNo2
themeStringNosystem主题样式, 包含light, dark, system, custom几种样式

Events


事件名(Name)参数类型(args)说明(statement)
root-clickobject单击根图标触发
item-clickobject单击路由项触发

Slot


  1. root

定义下拉内容

  • rootIcon: 根图标
  • separatorIcon: 分割图标
  • separator: 分隔符
vue
<template v-slot:root="x">
    <i class="fv-bc-separator-content ms-Icon" :class="[`ms-Icon--${x.rootIcon}`]"></i>
    <i class="fv-bc-separator-icon ms-Icon" :class="[x.separatorIcon ? `ms-Icon--${x.separator}` : '']">{{x.separatorIcon ? '' : x.separator}}</i>
</template>
  1. route-item

自定义Collapse显示图标

  • item: 当前项
  • index: 当前索引
vue
<template v-slot:route-item="x">
    <i class="ms-Icon" :class="[`ms-Icon--${x.icon}`]"></i>
</template>

MIT Licensed