element设置table某个列的样式
<el-table style="width: 100%;" height="250" :data="tableData" border size="mini" ref="multipleTable" :header-cell-style="{ background: '#80c1e2', color: '#fff', 'text-align': 'center' }" :header-row-style="{ height: '26px' }" :row-style="{ height: '25px' }" :cell-style="cellStyle" >
/** 表格样式 【给某一列设置样式】 */ cellStyle ({ row, column, rowIndex, columnIndex }) { if (columnIndex === 0) { return "background:#eaf5fb" } return { padding: "0px", "text-align": "center", "backgroud-color": "#007acc" } },
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Blazor Hybrid适配到HarmonyOS系统
· 支付宝 IoT 设备入门宝典(下)设备经营篇
· 万字调研——AI生成内容检测
· 解决跨域问题的这6种方案,真香!
· 一套基于 Material Design 规范实现的 Blazor 和 Razor 通用组件库