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

pull/170/head
RuoYi 3 years ago
parent 59387216b4
commit 99932d91c0

@ -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
} }

Loading…
Cancel
Save