Skip to content

Commit

Permalink
Update table.js
Browse files Browse the repository at this point in the history
表头参数增加totalRowFixed
以支持totalRow的小数位可定义
默认值2
  • Loading branch information
juneszh committed May 20, 2021
1 parent b5f6f89 commit 460fcf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/table.js
Expand Up @@ -971,7 +971,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
//td 内容
var content = function(){
var text = item3.totalRowText || ''
,thisTotalNum = parseFloat(totalNums[field]).toFixed(2)
,fixed = item3.totalRowFixed || 2
,thisTotalNum = parseFloat(totalNums[field]).toFixed(fixed)
,tplData = {}
,getContent;

Expand Down

0 comments on commit 460fcf4

Please sign in to comment.