当前位置:网站首页>El table Click to add row style
El table Click to add row style
2022-06-24 09:51: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;
// The currently selected line id And Table row comparison
if (this.vueData.currentDataId == row.id) {
return "success-row";
}
return "";
},
.success-row {
background: #0c90b8;
}
el-table Mouse over , Row style
.el-table tbody tr:hover>td {
background-color:rgba(220, 220, 220, 0.2)!important;
color:#000
}
边栏推荐
猜你喜欢

Talking about the knowledge of digital transformation

CICFlowMeter源码分析以及为满足需求而进行的修改

CF566E-Restoring Map【bitset】

生产者/消费者模型

Event registration Apache pulsar x kubesphere online meetup hot registration

关于thinkphp5 使用模型save()更新数据提示 method not exist:think\db\Query-&gt; 报错解决方案

Learning Tai Chi Maker - esp8226 (XIII) OTA

About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution

顶刊TPAMI 2022!基于不同数据模态的行为识别:最新综述

ThinkPHP5多语言切换项目实战
随机推荐
Implementation of simple floating frame in WindowManager
顶刊TPAMI 2022!基于不同数据模态的行为识别:最新综述
Servlet快速筑基
Codeforces Round #392 (Div. 2) D. Ability To Convert
Amendment to VPP implementation policy routing
百度AI模板 获取知识理解
Turn to: CEO of Samsung Electronics: all decisions should start from recognizing yourself
Summary of medical image open source datasets (II)
el-table表格的拖拽 sortablejs
操作符详解
Oracle数据库EXPDP只导出表的方法
Algorithm -- find and maximum length k subsequence (kotlin)
When should gridfs be used?
如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!
Oracle viewing data file header SCN information
About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution
Conseils étonnants pour promouvoir les ventes d'entreprise avec le chat en direct
ThinkPHP 5.0 模型关联详解
PhpStrom代码格式化设置
2021-08-17