Skip to content

Commit 7b60f2a

Browse files
committed
style: page-header
1 parent 5cf2707 commit 7b60f2a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

components/page-header/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import classNames from '../_util/classNames';
1414
import ResizeObserver from '../vc-resize-observer';
1515
import useDestroyed from '../_util/hooks/useDestroyed';
1616
import type { MouseEventHandler } from '../_util/EventInterface';
17+
import Space from '../space';
1718

1819
export const pageHeaderProps = () => ({
1920
backIcon: PropTypes.any,
@@ -123,7 +124,11 @@ const PageHeader = defineComponent({
123124
{tags && <span class={`${headingPrefixCls}-tags`}>{tags}</span>}
124125
</div>
125126
)}
126-
{extra && <span class={`${headingPrefixCls}-extra`}>{extra}</span>}
127+
{extra && (
128+
<span class={`${headingPrefixCls}-extra`}>
129+
<Space>{extra}</Space>
130+
</span>
131+
)}
127132
</div>
128133
);
129134
};

components/page-header/style/index.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,8 @@
8787
white-space: nowrap;
8888

8989
> * {
90-
margin-left: @margin-sm;
9190
white-space: unset;
9291
}
93-
94-
> *:first-child {
95-
margin-left: 0;
96-
}
9792
}
9893
}
9994

components/page-header/style/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ import './index.less';
33
// style dependencies
44
import '../../breadcrumb/style';
55
import '../../avatar/style';
6+
import '../../space/style';

0 commit comments

Comments
 (0)