当前位置:网站首页>:style中颜色使用函数动态获取赋值
:style中颜色使用函数动态获取赋值
2022-07-29 19:49:00 【无围之解】
data() {
return {
clientHeight: document.documentElement.clientHeight,
computed: {
tableHeight: function () {
return this.clientHeight - 420;
},
}
mounted() {
this.GetTableData(this.pageObj);
window.onresize = () => {
this.clientHeight = document.documentElement.clientHeight;
};
},
<el-table
:data="tableData"
:header-cell-style="{
backgroundColor: '#123121',
color: '#33113',
fontSize: '14px',
fontWeight: 'semibold',
}"
:style="{ minHeight: tableHeight + 'px' }"
max-height="560px"
>
changeStatus
<el-table-column
label="学习状态"
prop="status"
align="left"
width="120"
>
<template slot-scope="scope"边栏推荐
猜你喜欢

regular expression

siRNA-S-S-PEG-LMWP|M-MSN-siRNA介孔二氧化硅修饰RNA(齐岳RNA功能化修饰)

【AutoSAR 十一 通信相关机制】

LOG4J Learning

一道菜撑起百亿估值的太二酸菜鱼,能否迈过食品安全这道坎?
![[Mathematical Foundation] Learning about concepts related to linear algebra](/img/4c/d43fb47ff5b99998660a679b20699c.png)
[Mathematical Foundation] Learning about concepts related to linear algebra

程序员如何提升自己写代码的能力?

Omni-channel e-commerce | How can well-known domestic cosmeceuticals seize the opportunity to achieve rapid growth?

MSNs-SS-siRNA二氧化硅-二硫键-核酸RNA|HA-SS-siRNA,hyaluronic acid透明质酸修饰RNA(RNA修饰剂)

Common power symbols meaning sharing
随机推荐
如何让 x == 1 && x == 2 && x == 3 等式成立
JMeter使用教程(一)
LeetCode #88.合并两个有序数组
leetcode:952. 按公因数计算最大组件大小【并查集】
Experience Sharing | Tips for Writing Easy-to-Use Online Product Manuals
Safe Browser will have these hidden features that will let you play around with your browser
LeetCode_474_一和零
Chrome - Plugin Recommendations
Durable rules(持久规则引擎) 学习小记
regular expression
mysql get field comments and get table fields
【体系结构 四 存储结构】
scratch programming + elementary math
SAG1-MIC8复合DNA基因疫苗|新型脂质-HAP-DNA复合体|实验要求
ESP8266-Arduino programming example-LittleFS and data upload
【AutoSAR 十一 通信相关机制】
【组成原理 五 系统总线】
Kubernetes: (4) Common commands
【体系结构 三 流水线技术】
ESP8266-Arduino programming example-EEPROM read and write