当前位置:网站首页>: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"边栏推荐
猜你喜欢
随机推荐
【Autosar vLinkGen 链接器脚本生成器】
树上启发式合并小结
常用电源符号含义分享
LOG4J Learning
HMS Core音频编辑服务音源分离与空间音频渲染,助力快速进入3D音频的世界
磁性层状双金属氢氧化物和酶-DNA复合物|聚乙烯亚胺-DNA复合物(PEI/DNA)|作用机理
mysql 获取字段注释 和获取表字段
【组成原理 五 系统总线】
【体系结构 一 概述】
Monitoring basic resources through observation cloud monitor, automatic alarm
internship:利用easypoi将excel表数据导入导出
并发编程学习笔记 之 常用并发容器的概念及使用方法
JMeter usage tutorial (2)
震荡波病毒原代码(勒索病毒源代码)
【AutoSAR 五 方法论】
Build your own image search system (1): 10 lines of code to search images by image
双功能RGD-TAT修饰DNA纳米胶束|聚苯胺纳米线修饰DNA(PAINW/DNA)
LOG4J 学习
Expert advice | How to formulate a growth strategy for survival in an economic downturn
[mathematical foundation] higher mathematics concept learning







