<el-table :data="tableTwoData" stripe style="width: 100%" border size="mini" :cell-style="cellStyle">
<el-table-column :prop="item.prop" v-for="(item, index, key) in twoColumns" :key="key" :label="item.label"></el-table-column>
</el-table>
data里的数据
data () {
return {
tableTwoData:[],//表格数据
twoColumns:[
{
prop: "dataPeriod",
label: "数据期次",
width: "150",
},
{
prop: "themeArea",
label: "主题域",
width: "150",
},
{
prop: "submissionCn",
label: "报送表中文名",
width: "150",
},
],//表头
}
}