当前位置:网站首页>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
}
边栏推荐
- 如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!
- indexedDB本地存储,首页优化
- How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!
- linux下oracle服务器打开允许远程连接
- php单例模式详解
- 5 minutes, excellent customer service chat handling skills
- 转:三星电子CEO:一切决策都要从认清自己开始
- latex公式及表格识别
- 医学图像开源数据集汇总(二)
- Software system dependency analysis
猜你喜欢
如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!
ssh远程免密登录
Top issue tpami 2022! Behavior recognition based on different data modes: a recent review
数字化转型的失败原因及成功之道
js单例模式
In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection
R 椭圆随机点产生并画图
Learn Tai Chi Maker - esp8226 (12) esp8266 multitasking
Learning Tai Chi Maker - esp8226 (XIII) OTA
Servlet fast foundation building
随机推荐
vim的使用
Five heart matchmaker
Codeforces Round #392 (Div. 2) D. Ability To Convert
Honeypot 2 hfish, ehoney
canvas 绘制图片
算法---矩阵中战斗力最弱的 K 行(Kotlin)
开源一款监控数据采集器,啥都能监控
threejs的 mmd模型加载+轮廓加载+动画加载+音频加载+相机动画加载+ammojs加载 gltf模型的加载 +gltf的反射调整
SQL-统计连续N天登陆的用户
如何管理海量的网络基础设施?
谈谈数字化转型晓知识
队列Queue
How do novices choose the grade of investment and financial products?
Thinkphp5 multi language switching project practice
有关二叉树 的基本操作
Can the long-term financial products you buy be shortened?
转:三星电子CEO:一切决策都要从认清自己开始
indexedDB本地存储,首页优化
操作符详解
R ellipse random point generation and drawing