<el-table :data="listData" border fit highlight-current-row height="419">
<el-table-column type="index"></el-table-column>
<el-table-column :key="item.key" v-for="(item) in listDatacolumns" :label="item.text" :width="item.width" show-overflow-tooltip>
<template slot-scope="scope">
<span class="report-text">{{scope.row[item.key]}}</span>
</template>
</el-table-column>
</el-table>
listData: [],
listDatacolumns: [{
key: "name",
text: '姓名,
width: 160
},
{
key: "sex",
text: '性别’,
width: 170
},
{
key: "age",
text: '年龄‘,
width: 160
},
{
key: "height,
text: “身高”,
width: 150
}
],