Skip to content

Commit

Permalink
antd4 标签名与图标无间距修复
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxingsun authored Sep 27, 2024
1 parent ac33fca commit 068965e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/plugins/templates/keepalive/context.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,10 @@ export function useKeepOutlets() {
} }
{{/hasFixedHeader}}
key={`${pathname?.toLowerCase()}::${tabNameMap[pathname?.toLowerCase()]}`}
tab={<>{icon}{name}</>}
tab={<span>
{icon}
{name}
</span>}
closable={Object.entries(keepElements.current).length === 1?false:closable}
{...other}
/>
Expand Down

0 comments on commit 068965e

Please sign in to comment.