当前位置:网站首页>表格中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
- Flowable source code comment (XXXIX) task listener
- Wild melon or split melon?
- 葫芦儿 APP 使用帮助
- 数据治理:数据治理框架(第一篇)
- 了解 JVM 中几个相关问题 — JVM 内存布局、类加载机制、垃圾回收
- Looking for high school student developers with similar interests
- Xuanyi maintenance manual
- 从MLPerf谈起:如何引领AI加速器的下一波浪潮
- Continue to learn MySQL
猜你喜欢

云盘里资料被和谐了,怎么办?

Build 2022 上开发者最应关注的七大方向主要技术更新

It's not that you have a bad mind, but that you haven't found the right tool

In depth understanding of condition source code interpretation and analysis of concurrent programming

HCM 初学 ( 一 ) - 简介

Unity project experience summary

教务管理系统(免费源码获取)

Ssm+mysql second-hand trading website (thesis + source code access link)

Don't put your notes and videos everywhere!

这才是大学生必备软件 | 知识管理
随机推荐
Leetcode top 100 question 2 Add two numbers
CentOS 7 installed php7.0 using Yum or up2date
Codeforces Round #803 (Div. 2)vp
OpenGL ES: (5) OpenGL的基本概念、OpenGL ES 在屏幕产生图片的过程、OpenGL管线(pipeline)
What is the at instruction set often used in the development of IOT devices?
论文学习记录随笔 多标签之LIFT
C语言初阶——牛客网精选好题
[ffmpeg] [reprint] image mosaic: picture in picture with wheat
SSM的教务管理系统(免费源码获取)
Chip, an empire built on sand!
我从技术到产品经理的几点体会
Data governance: data governance framework (Part I)
tese_ Time_ 2h
Chapitre d'apprentissage mongodb: Introduction à la première leçon après l'installation
从底层结构开始学习FPGA----RAM IP的定制与测试
2022 the 8th China International "Internet +" college student innovation and entrepreneurship competition industry proposition track is open for registration!
Printk debugging summary
C语言初阶——实现扫雷游戏
libpng12.so.0: cannot open shared object file: No such file or directory 亲测有效
云盘里资料被和谐了,怎么办?