mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
v3.8.2 优化菜单名称过长悬停显示标题
This commit is contained in:
parent
0d06c7fe8b
commit
d1053d55ad
@ -21,8 +21,12 @@ export default {
|
||||
}
|
||||
|
||||
if (title) {
|
||||
if (title.length > 5) {
|
||||
vnodes.push(<span slot='title' title={(title)}>{(title)}</span>)
|
||||
} else {
|
||||
vnodes.push(<span slot='title'>{(title)}</span>)
|
||||
}
|
||||
}
|
||||
return vnodes
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user