Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
a0364f07
Commit
a0364f07
authored
Mar 15, 2022
by
RuoYi
Browse files
优化菜单名称过长悬停显示标题
parent
ed693e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/src/layout/components/Sidebar/Item.vue
View file @
a0364f07
...
...
@@ -21,7 +21,11 @@ export default {
}
if
(
title
)
{
vnodes
.
push
(
<
span
slot
=
'
title
'
>
{(
title
)}
<
/span>
)
if
(
title
.
length
>
5
)
{
vnodes
.
push
(
<
span
slot
=
'
title
'
title
=
{(
title
)}
>
{(
title
)}
<
/span>
)
}
else
{
vnodes
.
push
(
<
span
slot
=
'
title
'
>
{(
title
)}
<
/span>
)
}
}
return
vnodes
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment