From 7b60f2a8e6b8b9be21ff2486cb1e53d0afc91823 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 19 May 2022 22:14:53 +0800 Subject: [PATCH] style: page-header --- components/page-header/index.tsx | 7 ++++++- components/page-header/style/index.less | 5 ----- components/page-header/style/index.tsx | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/page-header/index.tsx b/components/page-header/index.tsx index 86768b508..67c1dd1f5 100644 --- a/components/page-header/index.tsx +++ b/components/page-header/index.tsx @@ -14,6 +14,7 @@ import classNames from '../_util/classNames'; import ResizeObserver from '../vc-resize-observer'; import useDestroyed from '../_util/hooks/useDestroyed'; import type { MouseEventHandler } from '../_util/EventInterface'; +import Space from '../space'; export const pageHeaderProps = () => ({ backIcon: PropTypes.any, @@ -123,7 +124,11 @@ const PageHeader = defineComponent({ {tags && {tags}} )} - {extra && {extra}} + {extra && ( + + {extra} + + )} ); }; diff --git a/components/page-header/style/index.less b/components/page-header/style/index.less index 6eeedec96..074145756 100644 --- a/components/page-header/style/index.less +++ b/components/page-header/style/index.less @@ -87,13 +87,8 @@ white-space: nowrap; > * { - margin-left: @margin-sm; white-space: unset; } - - > *:first-child { - margin-left: 0; - } } } diff --git a/components/page-header/style/index.tsx b/components/page-header/style/index.tsx index 8ca5d47ad..cd4e5ba32 100644 --- a/components/page-header/style/index.tsx +++ b/components/page-header/style/index.tsx @@ -3,3 +3,4 @@ import './index.less'; // style dependencies import '../../breadcrumb/style'; import '../../avatar/style'; +import '../../space/style';