Browse Source

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

tags/v3.5.0
RuoYi 3 years ago
parent
commit
99932d91c0
  1. 4
      ruoyi-ui/src/layout/components/Sidebar/Item.vue

4
ruoyi-ui/src/layout/components/Sidebar/Item.vue

@ -21,8 +21,12 @@ export default { @@ -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…
Cancel
Save