vue中表格设置某列样式、不显示表头

  <el-table
                v-show="activeName == 'second'"
                :data="tableData"
                border
                stripe//斑马线
                style=" 100%"
                :show-header="false"//隐藏表头
                fit
                **:cell-class-name="blue"**//操作列
        >
            <el-table-column
                    prop="name"
                    label="名称"
                    width="180"
                    color="#f00"
            >
            </el-table-column>
            <el-table-column
                    prop="data"
                    label="数据"
            >
            </el-table-column>
        </el-table>

  

原文地址:https://www.cnblogs.com/liheng2233/p/14977611.html