feat(sidebar-item):当目录名称字数超过5个时,鼠标悬停可以查看全部
This commit is contained in:
parent
62fc38078c
commit
3acffc3f3c
@ -21,7 +21,17 @@ export default {
|
||||
}
|
||||
|
||||
if (title) {
|
||||
vnodes.push(<span slot='title'>{(title)}</span>)
|
||||
if (title.length > 5) {
|
||||
vnodes.push(
|
||||
<el-tooltip slot="title" className="item" effect="dark" content={title} placement="right">
|
||||
<span>{(title)}</span>
|
||||
</el-tooltip>
|
||||
)
|
||||
} else {
|
||||
vnodes.push(
|
||||
<span slot="title">{(title)}</span>
|
||||
)
|
||||
}
|
||||
}
|
||||
return vnodes
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user