This commit is contained in:
贤心
2022-06-21 00:02:39 +08:00
parent 8033abc420
commit 7076f801f7
7 changed files with 11 additions and 15 deletions

View File

@@ -983,7 +983,7 @@ a cite{font-style: normal; *cursor:pointer;}
.layui-table-patch .layui-table-cell{padding: 0; width: 30px;}
.layui-table-edit{position: absolute; left: 0; top: 0; width: 100%; height: 100%; padding: 0 14px 1px; border-radius: 0; box-shadow: 1px 1px 20px rgba(0,0,0,.15)}
.layui-table-edit{position: absolute; left: 0; top: 0; z-index: 900; width: 100%; height: 100%; padding: 0 14px 1px; border-radius: 0; box-shadow: 1px 1px 20px rgba(0,0,0,.15); background-color: #fff;}
.layui-table-edit:focus{border-color: #5FB878!important;}
select.layui-table-edit{padding: 0 0 0 10px; border-color: #d2d2d2;}
.layui-table-view .layui-form-switch,

View File

@@ -15,7 +15,7 @@
}
,Layui = function(){
this.v = '2.6.13'; // layui 版本号
this.v = '2.7.0-rc1'; // layui 版本号
}
//识别预先可能定义的指定全局对象

View File

@@ -1008,13 +1008,9 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
//td 内容
var content = function(){
if( item3.totalRowDecimalScale == null || isNaN(item3.totalRowDecimalScale) ||
item3.totalRowDecimalScale < 0 || item3.totalRowDecimalScale > 10 ){
// 如果检测到非法值就重设为2。至于非法值的定义这里是我自己定义的。
item3.totalRowDecimalScale = 2;
}
var text = item3.totalRowText || ''
,thisTotalNum = parseFloat(totalNums[field]).toFixed(item3.totalRowDecimalScale)
,decimals = item3.totalRowDecimals || 2
,thisTotalNum = parseFloat(totalNums[field]).toFixed(decimals)
,tplData = {}
,getContent;
@@ -2168,4 +2164,4 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
exports(MOD_NAME, table);
});