-
-
- Ant Design
-
-
- /
-
-
-
-
-
- Component
-
-
-
- /
-
-
-
-
+ /
+
+
+
- General
+ Application Center
-
+ /
-
-
-
+
+
-
+
+ /
+
+
+
+
+ An Application
+
+
+ /
+
+
+
+
+`;
+
+exports[`renders ./components/breadcrumb/demo/overlay.md extend context correctly 1`] = `
+
-
- /
-
-
-
-
- Button
-
-
- /
-
-
-
+
+ /
+
+
+
+
+ Button
+
+
+ /
+
+
+
+
`;
exports[`renders ./components/breadcrumb/demo/separator.md extend context correctly 1`] = `
-
+
+ -
+
+ Home
+
+
+ >
+
+
+ -
+
+ Application Center
+
+
+ >
+
+
+ -
+
+ Application List
+
+
+ >
+
+
+ -
+
+ An Application
+
+
+ >
+
+
+
+
`;
exports[`renders ./components/breadcrumb/demo/separator-component.md extend context correctly 1`] = `
-
+
+
+ Application List
+
+
+
+ /
+
+
+
+ An Application
+
+
+
+
`;
exports[`renders ./components/breadcrumb/demo/withIcon.md extend context correctly 1`] = `
-
-
-
-
+
+
-
-
-
-
- /
-
-
-
-
+
+
+
-
+
+
+
+ Application List
+
+
+
+ /
-
- Application List
+
+
+
+ Application
-
-
- /
-
-
-
-
- Application
-
-
- /
-
-
-
+
+ /
+
+
+
+
`;
diff --git a/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap b/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap
index a74289bb95..fe8432dc01 100644
--- a/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap
@@ -1,343 +1,353 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/breadcrumb/demo/basic.md correctly 1`] = `
-
-`;
-
-exports[`renders ./components/breadcrumb/demo/overlay.md correctly 1`] = `
-
+
+
+
+
+ Application List
+
+
+
+ /
+
+
+
+
+ An Application
+
+
+ /
+
+
+
+
+`;
+
+exports[`renders ./components/breadcrumb/demo/overlay.md correctly 1`] = `
+
`;
exports[`renders ./components/breadcrumb/demo/separator.md correctly 1`] = `
-
+
+ -
+
+ Home
+
+
+ >
+
+
+ -
+
+ Application Center
+
+
+ >
+
+
+ -
+
+ Application List
+
+
+ >
+
+
+ -
+
+ An Application
+
+
+ >
+
+
+
+
`;
exports[`renders ./components/breadcrumb/demo/separator-component.md correctly 1`] = `
-
+
+
+ Application List
+
+
+
+ /
+
+
+
+ An Application
+
+
+
+
`;
exports[`renders ./components/breadcrumb/demo/withIcon.md correctly 1`] = `
-
-
-
-
+
+
-
-
-
-
- /
-
-
-
-
+
+
+
-
+
+
+
+ Application List
+
+
+
+ /
-
- Application List
+
+
+
+ Application
-
-
- /
-
-
-
-
- Application
-
-
- /
-
-
-
+
+ /
+
+
+
+
`;
diff --git a/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap b/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap
index d15176f2d5..4e423c0402 100644
--- a/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap
+++ b/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap
@@ -74,91 +74,93 @@ exports[`react router react router 3 1`] = `
]
}
>
-
+
+ /
+
+
+
+
+
+
+
+ Application List
+
+
+
+ /
+
+
+
+
+
+
+
+ Application1
+
+
+
+ /
+
+
+
+
+
+
+
+ Detail
+
+
+
+ /
+
+
+
+
+
`;
diff --git a/components/breadcrumb/style/index.less b/components/breadcrumb/style/index.less
index ca29afb3a9..f6a67aa2d8 100644
--- a/components/breadcrumb/style/index.less
+++ b/components/breadcrumb/style/index.less
@@ -13,6 +13,11 @@
font-size: @breadcrumb-icon-font-size;
}
+ ol {
+ display: flex;
+ flex-wrap: wrap;
+ }
+
a {
color: @breadcrumb-link-color;
transition: color 0.3s;
@@ -22,7 +27,7 @@
}
}
- & > span:last-child {
+ li:last-child {
color: @breadcrumb-last-item-color;
a {
@@ -30,7 +35,7 @@
}
}
- & > span:last-child &-separator {
+ li:last-child &-separator {
display: none;
}
diff --git a/components/config-provider/__tests__/__snapshots__/components.test.js.snap b/components/config-provider/__tests__/__snapshots__/components.test.js.snap
index 8a2afdd3c4..c280b4047e 100644
--- a/components/config-provider/__tests__/__snapshots__/components.test.js.snap
+++ b/components/config-provider/__tests__/__snapshots__/components.test.js.snap
@@ -985,189 +985,201 @@ exports[`ConfigProvider components Badge prefixCls 1`] = `
`;
exports[`ConfigProvider components Breadcrumb configProvider 1`] = `
-
-
-
- Bamboo
-
-
- /
-
-
-
-
- Light
-
-
- /
-
-
-
+
+ -
+
+ Bamboo
+
+
+ /
+
+
+ -
+
+ Light
+
+
+ /
+
+
+
+
`;
exports[`ConfigProvider components Breadcrumb configProvider componentSize large 1`] = `
-
-
-
- Bamboo
-
-
- /
-
-
-
-
- Light
-
-
- /
-
-
-
+
+ -
+
+ Bamboo
+
+
+ /
+
+
+ -
+
+ Light
+
+
+ /
+
+
+
+
`;
exports[`ConfigProvider components Breadcrumb configProvider componentSize middle 1`] = `
-
-
-
- Bamboo
-
-
- /
-
-
-
-
- Light
-
-
- /
-
-
-
+
+ -
+
+ Bamboo
+
+
+ /
+
+
+ -
+
+ Light
+
+
+ /
+
+
+
+
`;
exports[`ConfigProvider components Breadcrumb configProvider virtual and dropdownMatchSelectWidth 1`] = `
-
-
-
- Bamboo
-
-
- /
-
-
-
-
- Light
-
-
- /
-
-
-
+
+ -
+
+ Bamboo
+
+
+ /
+
+
+ -
+
+ Light
+
+
+ /
+
+
+
+
`;
exports[`ConfigProvider components Breadcrumb normal 1`] = `
-
-
-
- Bamboo
-
-
- /
-
-
-
-
- Light
-
-
- /
-
-
-
+
+ -
+
+ Bamboo
+
+
+ /
+
+
+ -
+
+ Light
+
+
+ /
+
+
+
+
`;
exports[`ConfigProvider components Breadcrumb prefixCls 1`] = `
-
-
-
- Bamboo
-
-
- /
-
-
-
-
- Light
-
-
- /
-
-
-
+
+ -
+
+ Bamboo
+
+
+ /
+
+
+ -
+
+ Light
+
+
+ /
+
+
+
+
`;
exports[`ConfigProvider components Button configProvider 1`] = `
diff --git a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap
index cc2bce37c6..e07746d61c 100644
--- a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap
+++ b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap
@@ -658,47 +658,49 @@ exports[`renders ./components/layout/demo/fixed.md extend context correctly 1`]
class="ant-layout-content site-layout"
style="padding:0 50px;margin-top:64px"
>
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
-
-
-
- User
-
-
- /
-
-
-
-
- Bill
-
-
- /
-
-
-
+
+ -
+
+ User
+
+
+ /
+
+
+ -
+
+ Bill
+
+
+ /
+
+
+
+
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
@@ -3757,47 +3763,49 @@ exports[`renders ./components/layout/demo/top-side.md extend context correctly 1
class="ant-layout-content"
style="padding:0 50px"
>
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
-
-
-
- User
-
-
- /
-
-
-
-
- Bill
-
-
- /
-
-
-
+
+ -
+
+ User
+
+
+ /
+
+
+ -
+
+ Bill
+
+
+ /
+
+
+
+
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
@@ -1697,47 +1703,49 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
class="ant-layout-content"
style="padding:0 50px"
>
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
-
-
-
- Home
-
-
- /
-
-
-
-
- List
-
-
- /
-
-
-
-
- App
-
-
- /
-
-
-
+
+ -
+
+ Home
+
+
+ /
+
+
+ -
+
+ List
+
+
+ /
+
+
+ -
+
+ App
+
+
+ /
+
+
+
+
-
+
+ /
+
+
+
+
+
+ Second-level Menu
+
+
+
+ /
+
+
+
+
+
+ Third-level Menu
+
+
+
+ /
+
+
+
+