ElementUI自定义表头和对应列
<el-table-column prop="time" min-width="30%" align="center">
<template slot="header" slot-scope="scope">
<div class="table-header">
<img src="<%=path%>/images/warn/warning-time.png" height="24px"/>
<span>时间</span>
</div>
</template>
<template slot-scope="scope">
<span style="margin-right: 20px;">{{ scope.row.time }}</span>
<img src="<%=path%>/images/warn/warning.png" height="18px" class="cur">
</template>
</el-table-column>