例子!
<el-table-column
prop="isOverText"
label="结清状态"
align="center"
:show-overflow-tooltip="true"
color:red
/ >
//这个样子加颜色是没有用的!
正确的例子!
<el-table-column
prop="isOverText"
label="结清状态"
align="center"
:show-overflow-tooltip="true"
>
//用插槽的方法来改变颜色!
<template slot-scope="scope">
<div :style="{ color: scope.row.isOverText ? 'red' : 'red' }">
{{ scope.row.isOverText }}
</div>
</template>
</el-table-column>