vue 表格获取当前行索引,加颜色
<span style='display:inline-block;width:10px;height:10px;border-radius:50%' :style="{background:color[scope.$index]}" />
//定义颜色
color: ['#5387F7', '#A794E0', '#F3543C', '#999999', '#77D3F8', '#FFA1B4', '#26CEBA', '#7B889B', '#F5527A', '#FF792B', '#D4BCB9', '#879CFF', '#FFC182', '#4ABDEB', '#AF9490 ', '#846AD5', '#FFECA1', '#783838', '#626B78', '#FFB468']