<el-table-column type="number" prop="total" label="共计" :formatter="rounding"></el-table-column>
//展现时数据格式化
rounding(row, column) {
return parseFloat(row[column.property]).toFixed(2)
},
关于html:eltablecolumn数字精度格式化
阿里云限时活动-云数据库 RDS MySQL 1核2G配置 1.88/月 速抢
本文由乐趣区整理发布,转载请注明出处,谢谢。