//css--------------------------------
&::before {
content: "";
position: absolute;
width: 5px;
height: 12px;
background: var(--color);//--------(--color)
top: 4px;
left: 0px;
border-radius: 2px;
}
//标签------------------
v-for='item in xxxxxx'
:style="{ '--color': item.background }"
vue中伪类元素 根据数据改变颜色
最新推荐文章于 2023-12-22 23:10:48 发布