JavaScript如何用el-table实现绘制热度表
实现效果

实现代码
{{ scope.$index + 1 }} {{ scope.row.name || '--'}} = 0 ? 'text-align:left' : 'text-align:center' " > 0" :style="`width:${(scope.row.total / brandHotList[0].total) * 83 + 0.5 }%;background:#ff454e`" class="length"> {{ scope.row.total }}
补充
除了绘制热度表,还可以绘制甘特图哦,下面就是示例代码
确定
效果图
