2 回答
TA贡献1836条经验 获得超5个赞
看你给的代码是两级表头
data:{
firstHeadHidden: '',
secondHeadHidden: ''
}
<el-table-column v-for="(data,index) in columnsTable"
:label="data.tierData.titleName"
:key="index"
v-if="color || data.tierData.titleName !== firstHeadHidden"
align="center">
<el-table-column v-for="(list,index) in data.tierData.content"
:key="list.text"
:label="list.text"
:prop="list.dataIndex"
v-if="list.text !== secondHeadHidden">
<template scope="scope">
{{scope.row[list.dataIndex]}}
</template>
</el-table-column>
</el-table-column>
TA贡献1757条经验 获得超8个赞
添加回答
举报