0
点赞
收藏
分享

微信扫一扫

实现 CSS 文字渐变色效果

北冥有一鲲 2023-08-22 阅读 48

(vue)多级表头且转为百分比显示


在这里插入图片描述


<el-table-column align="center" label="近三个月数据情况">
  <el-table-column align="center" prop="amount" :label="tableLast[0]">
    <template slot-scope="{ row }">{{ (row.amount * 100).toFixed(0) }}%</template>
  </el-table-column>
  <el-table-column align="center" prop="amountTwo" :label="tableLast[1]">
    <template slot-scope="{ row }">{{ (row.amountTwo * 100).toFixed(0) }}%</template>
  </el-table-column>
  <el-table-column align="center" prop="amountThree" :label="tableLast[2]">
    <template slot-scope="{ row }">{{ (row.amountThree * 100).toFixed(0) }}%</template>
  </el-table-column>
</el-table-column>
举报

相关推荐

0 条评论