style: page-header

pull/5820/head
tangjinzhou 2022-05-19 22:14:53 +08:00
parent 5cf2707e11
commit 7b60f2a8e6
3 changed files with 7 additions and 6 deletions

View File

@ -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 && <span class={`${headingPrefixCls}-tags`}>{tags}</span>}
</div>
)}
{extra && <span class={`${headingPrefixCls}-extra`}>{extra}</span>}
{extra && (
<span class={`${headingPrefixCls}-extra`}>
<Space>{extra}</Space>
</span>
)}
</div>
);
};

View File

@ -87,13 +87,8 @@
white-space: nowrap;
> * {
margin-left: @margin-sm;
white-space: unset;
}
> *:first-child {
margin-left: 0;
}
}
}

View File

@ -3,3 +3,4 @@ import './index.less';
// style dependencies
import '../../breadcrumb/style';
import '../../avatar/style';
import '../../space/style';