自定义el-table的label

60 阅读1分钟
el-tanle的label有时候对字体有特殊需要

比如说,某个lable颜色不一样,或者用特殊符号,如何解决?


<template slot="header" slot-scope="scope">

                   CO<sub>2</sub>

</template>
                

这样可以根据需要,写不同样式,或者动态渲染