Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
antd5 标签名与图标无间距修复
  • Loading branch information
rongxingsun authored Jul 24, 2024
commit 7e786a3caf4497d1e16d169ce4dd0725175295fe
3 changes: 2 additions & 1 deletion packages/plugins/templates/keepalive/context.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ export function useKeepOutlets() {
{...tabProps}
{{#isNewTabsAPISupported}}
items={Object.entries(keepElements.current).map(([pathname, {name, icon, closable, children, ...other}]: any) => ({
label: <>{icon}{name}</>,
label: name,
icon: icon
key: `${pathname?.toLowerCase()}::${tabNameMap[pathname?.toLowerCase()]}`,
closable: Object.entries(keepElements.current).length === 1 ? false : closable,
{{#hasFixedHeader}}
Expand Down