当前位置:网站首页>表格中el-tooltip 实现换行展示
表格中el-tooltip 实现换行展示
2022-07-01 05:43:00 【�孤 傲ζ】
效果
html代码
<el-table-column
prop="workcontents"
key="workcontents"
label="label"
align="center"
width="100"
>
<template slot-scope="scope">
<el-tooltip placement="top">
<div
style="max-width:480px" //设置最大宽度
v-html="scope.row.workcontents" // 显示的内容
slot="content"
></div>
<span class="overHiddlen">
{
{ scope.row.workcontents }} // 显示省略号
</span></el-tooltip
>
</template>
</el-table-column>
css代码
.overHiddlen {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1; /*可以显示的行数,超出部分用...表示 */
-webkit-box-orient: vertical;
}
边栏推荐
- Vscode function annotation / file header annotation shortcut
- π盘,让您电脑变成个人的私有云
- 多表操作-外键级联操作
- Unity project experience summary
- In depth understanding of condition source code interpretation and analysis of concurrent programming
- 运行时候的导包搜索路径虽然pycharm中标红但不影响程序的执行
- 小程序常用组件小结
- Build 2022 上开发者最应关注的七大方向主要技术更新
- Typeorm framework
- 数据治理:元数据管理实施(第四篇)
猜你喜欢
Continuous breakthrough and steady progress -- Review and Prospect of cross platform development technology of mobile terminal
Ssm+mysql second-hand trading website (thesis + source code access link)
It's not that you have a bad mind, but that you haven't found the right tool
Geoffrey Hinton:我的五十年深度学习生涯与研究心法
Trust guessing numbers game
In depth understanding of condition source code interpretation and analysis of concurrent programming
Send you through the data cloud
Ucosiii --- engineering transplantation
JDBC常见面试题
HCM 初学 ( 二 ) - 信息类型
随机推荐
Summary of common components of applet
扩展点系列之SmartInstantiationAwareBeanPostProcessor确定执行哪一个构造方法 - 第432篇
boot+jsp的高校社团管理系统(附源码下载链接)
HCM 初学 ( 二 ) - 信息类型
C语言初阶——实现扫雷游戏
Web Security (IX) what is JWT?
[medical segmentation] u2net
这才是大学生必备软件 | 知识管理
Daily code 300 lines learning notes day 11
POL8901 LVDS转MIPI DSI 支持旋转图像处理芯片
In depth understanding of condition source code interpretation and analysis of concurrent programming
LeetCode 最大矩形,最大正方形系列 84. 85. 221. 1277. 1725. (单调栈,动态规划)
First defined here occurs during QT compilation. Causes and Solutions
On the first day of the new year, 3000 Apache servers went down
为什么用葫芦儿派盘取代U盘?
数据库连接池的简单实现
不是你脑子不好用,而是因为你没有找到对的工具
2022.6.30-----leetcode. one thousand one hundred and seventy-five
Continue to learn MySQL
亲爱的派盘用户,我要向您表白!