首页 > 其他 > 详细

el-table表格组件内数字加千分位逗号

时间:2019-12-09 20:24:41      阅读:463      评论:0      收藏:0      [点我收藏+]

父组件:

技术分享图片

技术分享图片

 

 

el-table组件内:

技术分享图片

 

<template>
  <el-table class="em_table" :data="tableData" stripe :border="true" :size="size">
    <el-table-column v-for=" (column,index) in columns " :key="index" :prop="column.prop " :label="column.label ">
      <template slot-scope="scope">
        <span v-if="column.label !== ‘Area‘">{{formatCurrency(scope.row[column.prop])}}</span>
        <span v-else>{{scope.row[column.prop]}}</span>
      </template>
    </el-table-column>
  </el-table>
</template>

 

 

技术分享图片

 

el-table表格组件内数字加千分位逗号

原文:https://www.cnblogs.com/listen9436/p/12012880.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!