优化菜单名称过长悬停显示标题
This commit is contained in:
parent
ed693e89c9
commit
a0364f0758
@ -21,8 +21,12 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (title) {
|
if (title) {
|
||||||
|
if (title.length > 5) {
|
||||||
|
vnodes.push(<span slot='title' title={(title)}>{(title)}</span>)
|
||||||
|
} else {
|
||||||
vnodes.push(<span slot='title'>{(title)}</span>)
|
vnodes.push(<span slot='title'>{(title)}</span>)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return vnodes
|
return vnodes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user