<el-table-column
v-for="(i,index) in tableHead"
:title="i.value"
:prop="i.value"
:label="i.label"
sortable="custom">
<template slot-scope="scope">
<span v-if="i.value === 'event'" :title="scope.row.event">{{scope.row.event}}</span>
<span v-else>{{scope.row[i.value]}}</span>
</template>
</el-table-column>
element 表格动态表头循环加载
最新推荐文章于 2024-01-02 16:52:50 发布