React+Echarts 图形轮播
export function highlightLoop(echart, length, callback) {
let index = 0;
return setInterval(function () {
if(index !== 0){ //取消高亮
echart.dispatchAction({
type: 'downplay',
dataIndex: index - 1,
});
}
if (inde.
原创
2021-04-13 13:36:51 ·
374 阅读 ·
0 评论