当前位置:网站首页>Set the background color of a cell in the table
Set the background color of a cell in the table
2022-07-29 05:38:00 【Meow sauce fell asleep】
demand : A column cell is 1 Value , The background color is filled with orange
Realization effect :
Implementation method : Use table Provided :cell-style=“cellStyle”
Specific code :
<el-table
:data="tableData"
border
stripe
:cell-style="cellStyle"
>
cellStyle(row, column, rowIndex, columnIndex){
if(row.column.label === " Predicted liquid level depth in annulus (m)" && row.row.hkymsd=="1.00"){
return 'background-color:#e6a23c'
}
},
边栏推荐
- 虚拟增强与现实第二篇 (我是一只火鸟)
- 微信小程序-组件传参,状态管理
- 实现table某个单元格背景色设置
- link与@import导入外部样式的区别
- Li Kou 994: rotten orange (BFS)
- Camunda 1、Camunda工作流-介绍
- 公众号不支持markdown格式文件编写怎么办?
- [C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
- Provincial and urban three-level linkage (simple and perfect)
- 微信小程序更改属性值-setData-双向绑定-model
猜你喜欢

关于局部变量

Application of Huffman tree and Huffman coding in file compression

【JS题解】牛客网JS篇1-10题

eggjs 创建应用知识点

数据库操作 Day 6

【TypeScript】TypeScript中类型缩小(含类型保护)与类型谓词

uniapp组件之tab选项卡滑动切换

Alibaba cloud and Dingjie software released the cloud digital factory solution to realize the localized deployment of cloud MES system

【C语言系列】— 字符串+部分转义字符详解+注释小技巧
![[C language series] - storage of deep anatomical data in memory (II) - floating point type](/img/a4/126d9f8e812d8f69b4249eac837bf6.png)
[C language series] - storage of deep anatomical data in memory (II) - floating point type
随机推荐
Redirection and files
ClickHouse学习(十)监控运行指标
JS deep copy - Notes
The function of using wechat applet to scan code to log in to the PC web of the system
Day 1
ClickHouse学习(九)clickhouse整合mysql
Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens
Camunda 1. Camunda workflow - Introduction
用threejs 技术做游戏跑酷
抽象类与接口
Day 1
ClickHouse学习(八)物化视图
uniapp组件之tab选项卡滑动切换
基础爬虫实战案例之获取游戏商品数据
Clickhouse learning (VII) table query optimization
Pyqt5: Chapter 1, Section 1: creating a user interface using QT components - Introduction
浅谈Servlet
Wechat applet video upload component is directly uploaded to Alibaba cloud OSS
Clickhouse learning (IV) SQL operation
Detailed explanation of typical application code of C language array - master enters by mistake (step-by-step code explanation)