当前位置:网站首页>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'
}
},
边栏推荐
- 【C语言系列】— 把同学弄糊涂的 “常量” 与 “变量”
- 无重复字符的最长字串
- rem与px与em异同点
- Clickhouse learning (VIII) materialized view
- [C language series] - realize the exchange of two numbers without creating the third variable
- Occt learning 002 - environment construction
- Solution: find the position of the first and last element in a sorted array (personal notes)
- Abstract classes and interfaces
- 表格与表单相关知识点总结
- [C language series] - three methods to simulate the implementation of strlen library functions
猜你喜欢
随机推荐
[C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
shell基本操作(上)
ClickHouse学习(五)集群操作
Detailed explanation of exit interrupt
科班同学真的了解未来的职业规划吗?
ClickHouse学习(八)物化视图
Provincial and urban three-level linkage (simple and perfect)
C language first level pointer
[C language series] - three methods to simulate the implementation of strlen library functions
全局components组件注册
关于局部变量
利用Poi-tl在word模板表格单元格内一次插入多张图片和多行单元格相同数据自动合并的功能组件
The function of using wechat applet to scan code to log in to the PC web of the system
Bubble sort c language
Solution: find the position of the first and last element in a sorted array (personal notes)
eggjs 创建应用知识点
个人学习笔记
数据库操作 Day 6
uniapp组件之tab选项卡滑动切换
[sword finger offer] - explain the library function ATOI and simulate the realization of ATOI function