Appearance
Breadcrumb-DEMO
Basic
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb">
</fv-Breadcrumb>
1
2
2
Breadcrumb-Editable
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false">
</fv-Breadcrumb>
1
2
2
Breadcrumb-Custom Icon
- Char
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" separator=">">
</fv-Breadcrumb>
1
2
2
- Icon
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" separator="ChevronRightMed">
</fv-Breadcrumb>
1
2
2
Breadcrumb-Hide Root
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" :showRoot="false">
</fv-Breadcrumb>
1
2
2
Breadcrumb-Dark Theme
vue
<div style="padding: 8px; background: black;">
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" theme="dark" :readOnly="false">
</fv-Breadcrumb>
</div>
1
2
3
4
2
3
4
Breadcrumb-Dark Disabled
- Light
vue
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" :readOnly="false" disabled>
</fv-Breadcrumb>
1
2
2
- Dark
vue
<div style="padding: 8px; background: black;">
<fv-Breadcrumb modelValue="/creatorsn/vfluent/breadcrumb" theme="dark" :readOnly="false" disabled>
</fv-Breadcrumb>
</div>
1
2
3
4
2
3
4
Propoties
属性(attr) | 类型(type) | 必填(required) | 默认值(default) | 说明(statement) |
---|---|---|---|---|
modelValue | String | No | N/A | 字符串路径 |
separator | String | No | / | 分隔符显示, 可以是字符或图标 |
separatorChar | String | No | / | 以什么字符分割路径 |
showRoot | Boolean | No | true | 显示根图标 |
rootIcon | String | No | FolderHorizontal | 根图标 |
readOnly | Boolean | No | true | 是否只读 |
borderColor | [string(color)] | No | N/A | |
disabled | Boolean | No | false | |
borderRadius | Number | No | 2 | |
theme | String | No | system | 主题样式, 包含light , dark , system , custom 几种样式 |
Events
事件名(Name) | 参数类型(args) | 说明(statement) |
---|---|---|
root-click | object | 单击根图标触发 |
item-click | object | 单击路由项触发 |
Slot
- 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
2
3
4
2
3
4
- route-item
自定义Collapse
显示图标
- item: 当前项
- index: 当前索引
vue
<template v-slot:route-item="x">
<i class="ms-Icon" :class="[`ms-Icon--${x.icon}`]"></i>
</template>
1
2
3
2
3