问题:1、自定义table表头宽度 render-header报黄 2、处理相关数据
解决: 或者数据里带宽度,Item.width也行,我的数据不能带只能这么写
<template v-for="item in defaultData">
<el-table-column scoped-slot="header" :min-width="item.label.length * 30 +10" v-if="item.show" :key="item.prop" :prop="item.prop" :label="item.label" align="center" :formatter="formatter">
<template slot="header" slot-scope> {{ item.label }} </template>
</el-table-column>
</template>