Skip to content
Open
Changes from 3 commits
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
8 changes: 6 additions & 2 deletions 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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

冒号是中文

key: `${pathname?.toLowerCase()}::${tabNameMap[pathname?.toLowerCase()]}`,
closable: Object.entries(keepElements.current).length === 1 ? false : closable,
{{#hasFixedHeader}}
Expand All @@ -462,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
Loading