优化菜单名称过长悬停显示标题

This commit is contained in:
RuoYi 2022-03-15 14:24:52 +08:00
parent ed693e89c9
commit a0364f0758
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,11 @@ export default {
} }
if (title) { 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 return vnodes
} }