element-ui 中为表头添加tooltips

有时要为列头增加更多的描述,需要添加tooltips,文档中对Table-column Attributes描述为

render-header 列标题 Label 区域渲染使用的 Function Function(h, { column, $index })

那么需要在代码中作如果操作

<el-table-column prop="lowerLimit" label="成团人数" :render-header="handleHelp"></el-table-column>

//然后在mothod里实现handlehelp方法
        handleHelp(){
            return(
                <el-tooltip class="item" effect="dark" placement="top" content="该活动的最低成团人数">
                    <div>开团数量</div>
                </el-tooltip>
            )
        }
原文地址:https://www.cnblogs.com/bing2017/p/15420970.html