当前位置:网站首页>el-table点击添加行样式
el-table点击添加行样式
2022-06-24 09:32:00 【Time202051】
<el-table
:data="tableData"
border
:max-height="200"
:style="{
borderColor: showPanelTableStyle.borderColor,
width: `210px`,
}"
:cell-style="{
borderColor: showPanelTableStyle.borderColor,
fontFamily: showPanelTableStyle.cellFontFamily,
fontSize: `${
showPanelTableStyle.cellFontSize}px`,
color: showPanelTableStyle.cellFontColor,
backgroundColor: showPanelTableStyle.cellBgColor,
padding: 0,
height: `40px`,
}"
:header-cell-style="{
borderColor: showPanelTableStyle.borderColor,
fontFamily: showPanelTableStyle.headerFontFamily,
fontSize: `${
showPanelTableStyle.headerFontSize}px`,
color: showPanelTableStyle.headerFontColor,
backgroundColor: showPanelTableStyle.headerBgColor,
padding: 0,
height: '40px',
}"
:row-class-name="tableRowClassName"
@row-click="onRowHandler($event)"
>
</el-table>
:row-class-name="tableRowClassName"
tableRowClassName({
row, rowIndex }) {
if (!this.vueData) return;
// 当前选中行id 与 表格的各行比较
if (this.vueData.currentDataId == row.id) {
return "success-row";
}
return "";
},
.success-row {
background: #0c90b8;
}
el-table鼠标经过,行样式
.el-table tbody tr:hover>td {
background-color:rgba(220, 220, 220, 0.2)!important;
color:#000
}
边栏推荐
- Seekbar with text: customize progressdrawable/thumb: solve incomplete display
- PhpStrom代码格式化设置
- php单例模式详解
- Oracle数据文件头SCN不一致处理方法
- ggplot2颜色设置总结
- [Eureka registry]
- WindowManager 简单悬浮框的实现
- In depth analysis of Apache bookkeeper series: Part 3 - reading principle
- Servlet fast foundation building
- How to locate lock waiting in Dameng database
猜你喜欢

Cdga | how can we do well in data governance?

Idea cannot save settings source root d:xxxx is duplicated in module XXX

ggplot2颜色设置总结

英伟达这篇CVPR 2022 Oral火了!2D图像秒变逼真3D物体!虚拟爵士乐队来了!

The ambition of JD instant retailing from 618

Learning Tai Chi Maker - esp8226 (XIII) OTA

如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!

Prct-1400: failed to execute getcrshome resolution

Oracle数据文件头SCN不一致处理方法

五心红娘
随机推荐
LeetCode: 377. 组合总和 Ⅳ
转:三星电子CEO:一切决策都要从认清自己开始
Threejs MMD model loading + contour loading + animation loading + Audio loading + camera animation loading +ammojs loading gltf model loading +gltf reflection adjustment
In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection
关于thinkphp5 使用模型save()更新数据提示 method not exist:think\db\Query-&gt; 报错解决方案
居家办公如何管理数据中心网络基础设施?
198. house raiding
医学图像开源数据集汇总(二)
Baidu AI template for knowledge understanding
PostgreSQL
Summary of medical image open source datasets (II)
PTA monkey chooses King (Joseph Ring problem)
Endgame P.O.O
Grpc local test joint debugging tool bloomrpc
深度学习论文阅读目标检测篇(七)中英对照版:YOLOv4《Optimal Speed and Accuracy of Object Detection》
ThinkPHP5多语言切换项目实战
Event registration Apache pulsar x kubesphere online meetup hot registration
impdp导schema报ORA-31625异常处理
什么情况下应该使用GridFS?
Algorithm -- find and maximum length k subsequence (kotlin)