zoukankan      html  css  js  c++  java
  • element 给table的个别表格框添加样式 ---重构里面的组件

    <el-table
    ref="singleTable"
    :show-header='false'
    :data="tableData"
    align='center'
     
    highlight-current-row
    style=" 100%">
    <el-table-column align='center' property="" label="" :width="40">    //注意width 溢出不显示
    <template slot-scope="scope">
    <div :class="{'activestyle':scope.$index<3,'noactivestyle':scope.$index>=3}">{{scope.$index}}</div>
    </template>
    </el-table-column>
    <el-table-column v-for='(column,index) in columns' align='center' :key="index" :prop="column.property"
    :label="column.label"
    :width="column.width">
    </el-table-column>
    </el-table>
     
     
    CSS
    .activestyle{
    border-radius: 50%;
    background:#5E5E5E;
    color:#fff
    }
    .noactivestyle{
    border-radius: 50%;
    background-color:#ddd;
    color:#000
    }
  • 相关阅读:
    自动构建部署
    EF 性能调优
    断点续传
    gis 相关资料
    easyui 特殊操作
    KJ面试
    前端面试题汇总
    es6之扩展运算符 三个点(...)
    vue.js开发环境搭建
    gulp 环境搭建
  • 原文地址:https://www.cnblogs.com/Quxiya/p/10496038.html
Copyright © 2011-2022 走看看