问题二:接口返回的表格数据加上黄色圆点渲染到页面,并且根据不同的数据渲染不同的颜色
解决办法:
render: (h, param) => {
return h("span", [
h(
"span",
{
class: `release ${param.row.tableStatus + "-color"}`
},
this.tableStatusList[param.row.tableStatus]
)
]);
}
&.UPDATE-color::before {
position: absolute;
top: 6px;
left: -14px;
content: " ";
width: 8px;
height: 8px;
border-radius: 50%;
background: #ff9900;
}
&.NEW-color::before {
position: absolute;
top: 6px;
left: -14px;
content: " ";
width: 8px;
height: 8px;
border-radius: 50%;
background: #ff9900;
}```