<el-table :data="tableData" style="width: 100%"> //
<!-- 动态获取表格 -->
<el-table-column
v-for="(item, index) in tableHeader"
:key="index"
:label="item"
>
<template slot-scope="scope">
{{scope.row[item]}}
</template>
</el-table-column>
</el-table>
网友评论