Element plus 自定义表头函数:render-header 参数是 function({ column, $index })。Element UI的参数是 function(h, { column, $index })。网上所有的帖子都带参数h的。在Element plus环境下,加上参数‘h’运行会出错,如果不加‘h',显示不出来效果。如下面例子,只能显示表头,后面的Checkbox显示不出来。哪位知道问题怎么解决?
function renderHeader({ column, $index }) {
return (
"span", {},
[
("span", column.label),
("el-checkbox",
{
style: "margin-left:5px",
on: {
change: "select",
},
}),
]
);
}