You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
9 years ago
|
---
|
||
|
category: Components
|
||
|
chinese: 面包屑
|
||
9 years ago
|
type: Navigation
|
||
9 years ago
|
english: Breadcrumb
|
||
|
---
|
||
10 years ago
|
|
||
10 years ago
|
显示当前页面在系统层级结构中的位置,并能向上返回。
|
||
10 years ago
|
|
||
10 years ago
|
## 何时使用
|
||
10 years ago
|
|
||
10 years ago
|
- 当系统拥有超过两级以上的层级结构时;
|
||
9 years ago
|
- 当需要告知用户『你在哪里』时;
|
||
10 years ago
|
- 当需要向上导航的功能时。
|
||
9 years ago
|
|
||
|
## API
|
||
|
|
||
|
```html
|
||
|
<Breadcrumb>
|
||
|
<Breadcrumb.Item>首页</Breadcrumb.Item>
|
||
9 years ago
|
<Breadcrumb.Item>应用中心</Breadcrumb.Item>
|
||
|
<Breadcrumb.Item>应用列表</Breadcrumb.Item>
|
||
9 years ago
|
<Breadcrumb.Item>某应用</Breadcrumb.Item>
|
||
|
</Breadcrumb>
|
||
|
```
|
||
|
|
||
9 years ago
|
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||
9 years ago
|
|-----------|-----------------------------------|-----------------|---------|--------|
|
||
9 years ago
|
| routes | router 的路由栈信息 | Array | | - |
|
||
|
| params | 路由的参数 | Object | | - |
|
||
9 years ago
|
| separator | 分隔符自定义 | String or Element | | '/' |
|
||
9 years ago
|
| linkRender | 自定义链接函数,和 react-router 配置使用 | Function(href, name, paths) | | - |
|
||
9 years ago
|
| nameRender | 自定义文字函数,和 react-router 配置使用 | Function(breadcrumbName, route, params) | | - |
|