el-table动态表头

 

 

  <el-table
                    class="table-head-transparent"
                    :data="tableData"
                    :height="tableHeight"
                    :header-cell-style="{ 'border-ground': 'tranparent' }"
                  >
                    <el-table-column
                      align="center"
                      prop="orgName"
                      label="公司名称"
                    >
                    </el-table-column>
                    <el-table-column
                      v-for="(item, index) in tableHead"
                      :key="index"
                      :label="item.attributeName"
                      :property="item.attribute"
                      align="center"
                    >
                      <template slot-scope="scope">{{
                        scope.row.values[scope.column.property]
                      }}</template>
                    </el-table-column>
                  </el-table>

 

posted @ 2020-11-09 10:34  ThisCall  阅读(2931)  评论(0编辑  收藏  举报