mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
Breadcrumb. Separator add description
This commit is contained in:
parent
06e2e1a616
commit
188f408799
@ -149,99 +149,6 @@ exports[`renders ./components/breadcrumb/demo/overlay.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`renders ./components/breadcrumb/demo/router.md correctly 1`] = `
|
|
||||||
<div
|
|
||||||
class="demo"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="demo-nav"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
href="#/"
|
|
||||||
>
|
|
||||||
Home
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="#/apps"
|
|
||||||
>
|
|
||||||
Application List
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
Home Page
|
|
||||||
<div
|
|
||||||
class="ant-alert ant-alert-info ant-alert-no-icon"
|
|
||||||
data-show="true"
|
|
||||||
style="margin:16px 0;"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="ant-alert-message"
|
|
||||||
>
|
|
||||||
Click the navigation above to switch:
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="ant-alert-description"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="ant-breadcrumb"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
<span
|
|
||||||
class="ant-breadcrumb-link"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Home
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="ant-breadcrumb-separator"
|
|
||||||
>
|
|
||||||
/
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
|
|
||||||
exports[`renders ./components/breadcrumb/demo/router-4.md correctly 1`] = `
|
|
||||||
<div
|
|
||||||
class="demo"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="demo-nav"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
href="#/"
|
|
||||||
>
|
|
||||||
Home
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="#/apps"
|
|
||||||
>
|
|
||||||
Application List
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
Home Page
|
|
||||||
<div
|
|
||||||
class="ant-alert ant-alert-info ant-alert-no-icon"
|
|
||||||
data-show="true"
|
|
||||||
style="margin:16px 0;"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="ant-alert-message"
|
|
||||||
>
|
|
||||||
Click the navigation above to switch:
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="ant-alert-description"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="ant-breadcrumb"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
|
|
||||||
exports[`renders ./components/breadcrumb/demo/separator.md correctly 1`] = `
|
exports[`renders ./components/breadcrumb/demo/separator.md correctly 1`] = `
|
||||||
<div
|
<div
|
||||||
class="ant-breadcrumb"
|
class="ant-breadcrumb"
|
||||||
@ -299,7 +206,7 @@ exports[`renders ./components/breadcrumb/demo/separator.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`renders ./components/breadcrumb/demo/separator-1.md correctly 1`] = `
|
exports[`renders ./components/breadcrumb/demo/separator-indepent.md correctly 1`] = `
|
||||||
<div
|
<div
|
||||||
class="ant-breadcrumb"
|
class="ant-breadcrumb"
|
||||||
>
|
>
|
||||||
|
@ -32,6 +32,14 @@ title: Breadcrumb
|
|||||||
| overlay | 下拉菜单的内容 | [Menu](/components/menu) \| () => Menu | - | 3.17.0 |
|
| overlay | 下拉菜单的内容 | [Menu](/components/menu) \| () => Menu | - | 3.17.0 |
|
||||||
| onClick | 单击事件 | (e:MouseEvent)=>void | - | 3.17.0 |
|
| onClick | 单击事件 | (e:MouseEvent)=>void | - | 3.17.0 |
|
||||||
|
|
||||||
|
### Breadcrumb.Separator
|
||||||
|
|
||||||
|
| 参数 | 参数 | 类型 | 默认值 | 版本 |
|
||||||
|
| -------- | -------------- | ----------------- | ------ | ------ |
|
||||||
|
| children | 要显示的分隔符 | string\|ReactNode | '/' | 3.21.0 |
|
||||||
|
|
||||||
|
> 注意:在使用 `Breadcrumb.Separator` 时,其父组件的分隔符必须设置为 `separator=""`,否则会出现父组件默认的分隔符。
|
||||||
|
|
||||||
### routes
|
### routes
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
Loading…
Reference in New Issue
Block a user