当前位置:网站首页>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
}
边栏推荐
- PostgreSQL DBA快速入门-通过源码编译安装
- port 22: Connection refused
- LeetCode: 240. 搜索二维矩阵 II
- Inspiration from reading CVPR 2022 target detection paper
- Detailed explanation of ThinkPHP 5.0 Model Association
- Oracle database expdp only exports tables
- 谈谈数字化转型晓知识
- Vidéo courte recommandée chaque semaine: Soyez sérieux en parlant de "métaunivers"
- PostgreSQL
- 如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!
猜你喜欢

医学图像开源数据集汇总(二)

CF566E-Restoring Map【bitset】

5 minutes, excellent customer service chat handling skills

Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction

ssh远程免密登录

In depth analysis of Apache bookkeeper series: Part 3 - reading principle

How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!

Reasons for the failure of digital transformation and the way to success

PRCT-1400 : 未能执行 getcrshome解决方法

Literature Research Report
随机推荐
Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction
Oracle数据库监听文件配置
Grpc local test joint debugging tool bloomrpc
Oracle数据库EXPDP只导出表的方法
如何规范化数据中心基础设施管理流程
医学图像开源数据集汇总(二)
Go language project development practice directory
20、 Processor scheduling (RR time slice rotation, mlfq multi-level feedback queue, CFS fully fair scheduler, priority reversal; multiprocessor scheduling)
ApplicationContextInitializer的三种使用方法
请问有国内靠谱低手续费的期货开户渠道吗?网上开户安全吗?
An open source monitoring data collector that can monitor everything
linux下oracle服务器打开允许远程连接
Tnsnames Ora file configuration
Time series data augmentation for deep learning: paper reading of a survey
生产者/消费者模型
P6698-[balticoi 2020 day2] virus [AC automata, DP, SPFA]
ssh远程免密登录
新手怎么选择投资理财产品的等级?
LeetCode: 137. 只出现一次的数字 II
如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!