- 链接地址:https://blog.csdn.net/hong521520/article/details/119644719
- 链接标题:element UI 之table表格表头过长使用点点...显示,并添加鼠标移入悬浮显示_el-table表头鼠标悬浮添加下划线-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5487
文章浏览阅读894次,点赞4次,收藏7次。需求:鼠标移入表头:1、样式中添加.el-table .cell { word-break: keep-all !important; white-space: nowrap !important; }2、在需要悬浮显示的表头文字过长处添加:show-overflow-tooltip="true":render-header="renderHeader"3、methods中添加:renderHeader(h, data) { return h("sp_el-table表头鼠标悬浮添加下划线
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除