首页 > 其他分享 >elementUI table 斑马纹

elementUI table 斑马纹

时间:2022-12-29 09:55:14浏览次数:39  
标签:elementUI 05 No Tom address date table 2016 斑马


<el-table :data="tableData" :header-cell-style="{background:'#011550',color:'#5c8aaf'}" :row-class-name="toggleRowClassName" align="center"
style="width: 376px" max-height="355px">

<el-table-column label="学院" prop="name" width="180"/>
<el-table-column label="实训室数量" prop="address"/>
<el-table-column label="占比" prop="address">
<template #default="scope">
<div class="rate">
{{ scope.row.address }}
</div>
</template>
</el-table-column>
</el-table>
------------------------------------------------------------
tableData: [
{
date: '2016-05-03',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-03',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-03',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No',
},
],
-----------------------------------------------------
toggleRowClassName({row, rowIndex}) {
if (rowIndex % 2 == 1) {
return 'deep_row'
} else {
return 'light_row'
}
}

标签:elementUI,05,No,Tom,address,date,table,2016,斑马
From: https://www.cnblogs.com/connie256/p/17011778.html

相关文章

  • 在手机页面上显示table方案研究
     资料地址:https://elvery.net/demo/responsive-tables/ 第一种方案:当屏幕宽度小于一个值时,将不重要的列隐藏掉; 第二种方案:固定第一个列,其他列可以拉动展示 第三种方案......
  • The CBO CPU Costing Model: Indexes vs. Full Table Scans
    As ​​previouslypromised​​​,IthoughtImightlookathowtheCBO goesaboutcostingaFullTableScan(FTS)withsystemstatisticsandtheCPUcosting......
  • Index Rebuild – Does it use the Index or the Table
    Acommonquestionthatgetsaskedis doesOracleaccesstheindexitselfortheparenttable duringanindexrebuildtoextractthenecessarydatafortheind......
  • layui table 动态生成复杂表头 及 数据绑定问题
    table复杂表头 下面将是我们要实现的效果下面是后台返回的数据    复杂表头重要的属性:rowspancolspan需要注意的是循环生成表头时,循环时不会执行templet里......
  • jquery dataTable 设置固定列
    引入js<scriptsrc="https://cdn.datatables.net/fixedcolumns/4.0.2/js/dataTables.fixedColumns.min.js"></script>js代码://初始化页面,加载供应商数据dataTable......
  • 消息提示封装elementui
    Vue.prototype.$msgTip = function (msg, temp,warningTime = 3000) {                let type = '';                switch......
  • CompletableFuture 使用总结
    转载请注明出处:1.Future使用对比Future表示一个异步计算的结果。它提供了isDone()来检测计算是否已经完成,并且在计算结束后,可以通过get()方法来获取计算结果。在异步......
  • IfcTableRow
    IfcTableRow实体定义IfcTableRow包含IfcTable中单行的数据。 限制:为了向后兼容,IfcTable引用的所有IfcTableRow对象应具有相同数量的行单元格。实际单元格数应取自该表......
  • 在TableViewer中如何给表格的单元格增加其他组件的编辑功能
    我想实现在JFace/SWT下的TableViewer中的单元格中能添加一些组件比如Button,Text,Label的功能,我查了一下,JFace本身已经实现了ComboBoxCellEditor,TextCellEditor,CheckboxCellE......
  • 自定义elementUI皮肤、色系、主题、主色调
    ​​Element-Theworld'smostpopularVueUIframeworkElement,一套为开发者、设计师和产品经理准备的基于Vue2.0的桌面端组件库https://element.eleme.cn/#/zh-CN/th......