效果展示
列(el-table-column)
<el-table-column label="编号" align="center" prop="dictId" show-overflow-tooltip :render-header="renderHeader"/>
函数
renderHeader(h, {column}) {
const tipContent = [
h(
"div",
{
slot: "content",
style: "margin-bottom:5px"
},
"禁用的行说明已被选择!"
)
];
return h("div", [
h("span", column.label),
h(
"el-tooltip",
{
props: {
placement: "bottom"
}
},
[
tipContent,
h("i", {
class: "el-icon-warning-outline",
style: "color:orange;margin-left:5px;"
})
]
)
]);
},