当前位置:网站首页>el-table动态表头

el-table动态表头

2020-11-09 10:49:00 ThisCall

 

 

  <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>

 

版权声明
本文为[ThisCall]所创,转载请带上原文链接,感谢
https://www.cnblogs.com/dianzan/p/13947297.html