element-ui table 自定义某列样式
// 表格每行第五列开始添加点击效果
this.$nextTick(() => { //在获得数据元素渲染后获得dom元素
for (let i = 0; i < $(".el-table__row").length; i++) {
let classList = [...$(".el-table__row")[i].childNodes];
//取得想要修改样式的某几列
classList = classList.splice(
5,
$(".el-table__row")[i].childNodes.length - 1
);
for (let y = 0; y < classList.length - 1; y++) {
$(classList[y]).css({
"vertical-align": "top",
});
}
}
});