fix(group): 分组面包屑保留详情页外框
用 Card.detail-nav 包裹 Breadcrumb,和条目/图文详情页一致
This commit is contained in:
+14
-11
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
Breadcrumb,
|
Breadcrumb,
|
||||||
|
Card,
|
||||||
Empty,
|
Empty,
|
||||||
EngineIcon,
|
EngineIcon,
|
||||||
Layout,
|
Layout,
|
||||||
@@ -607,17 +608,19 @@ export default function AppNext() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="detail-view">
|
<div className="detail-view">
|
||||||
<Breadcrumb
|
<Card padding="none" className="detail-nav">
|
||||||
className="detail-breadcrumb"
|
<Breadcrumb
|
||||||
items={[
|
className="detail-breadcrumb"
|
||||||
{ label: '首页', href: '/' },
|
items={[
|
||||||
...trail.map((node) => ({
|
{ label: '首页', href: '/' },
|
||||||
label: node.title,
|
...trail.map((node) => ({
|
||||||
href: `/g/${encodeURIComponent(node.key)}`,
|
label: node.title,
|
||||||
})),
|
href: `/g/${encodeURIComponent(node.key)}`,
|
||||||
]}
|
})),
|
||||||
onNavigate={navigate}
|
]}
|
||||||
/>
|
onNavigate={navigate}
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
|
||||||
<div className="detail-hero">
|
<div className="detail-hero">
|
||||||
<span className="detail-hero-icon" aria-hidden="true">
|
<span className="detail-hero-icon" aria-hidden="true">
|
||||||
|
|||||||
Reference in New Issue
Block a user