update
This commit is contained in:
parent
8033abc420
commit
7076f801f7
@ -3,7 +3,7 @@
|
|||||||
,"msg": ""
|
,"msg": ""
|
||||||
,"count": 3000000
|
,"count": 3000000
|
||||||
,"totalRow": {
|
,"totalRow": {
|
||||||
"experience": "666"
|
"experience": "777"
|
||||||
}
|
}
|
||||||
,"data": [{
|
,"data": [{
|
||||||
"id": "10001"
|
"id": "10001"
|
||||||
@ -34,7 +34,7 @@
|
|||||||
,"email": "test3@email.com"
|
,"email": "test3@email.com"
|
||||||
,"sex": "男"
|
,"sex": "男"
|
||||||
,"city": "浙江杭州"
|
,"city": "浙江杭州"
|
||||||
,"sign": "人生恰似一场修行"
|
,"sign": "人生恰似一场修行<br>1<br>1<br>1<br>1<br>1<br>1"
|
||||||
,"experience": 8
|
,"experience": 8
|
||||||
,"ip": "192.168.0.8"
|
,"ip": "192.168.0.8"
|
||||||
,"logins": null
|
,"logins": null
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"status": 200
|
"status": 200
|
||||||
,"message": ""
|
,"message": ""
|
||||||
,"total": 3000000
|
,"total": 333333
|
||||||
,"data": {
|
,"data": {
|
||||||
"list": [{
|
"list": [{
|
||||||
"id": "10001"
|
"id": "10001"
|
||||||
|
@ -182,7 +182,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../src/layui.js" src1="//www.layuicdn.com/layui-v2.0.1/layui.js" charset="utf-8"></script>
|
<script src="../src/layui.js" src1="https://cdn.staticfile.org/layui/2.6.13/layui.js"></script>
|
||||||
<script>
|
<script>
|
||||||
layui.use(['table', 'dropdown'], function(){
|
layui.use(['table', 'dropdown'], function(){
|
||||||
var table = layui.table
|
var table = layui.table
|
||||||
@ -303,7 +303,7 @@ layui.use(['table', 'dropdown'], function(){
|
|||||||
,{field: 'sex', title: '性别', width: 80}
|
,{field: 'sex', title: '性别', width: 80}
|
||||||
,{field: 'city', title: '城市', width: 100}
|
,{field: 'city', title: '城市', width: 100}
|
||||||
// ,{field: 'experience', title: '积分', width: 80, sort: true}
|
// ,{field: 'experience', title: '积分', width: 80, sort: true}
|
||||||
,{field: 'experience', title: '积分', width: 80, sort: true, totalRow: true, totalRowDecimalScale: 20}
|
,{field: 'experience', title: '积分', width: 80, sort: true, totalRow: true, totalRowDecimals: 3}
|
||||||
]]
|
]]
|
||||||
,data: [{
|
,data: [{
|
||||||
"id": "10001"
|
"id": "10001"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "layui",
|
"name": "layui",
|
||||||
"realname": "layui",
|
"realname": "layui",
|
||||||
"version": "2.6.13",
|
"version": "2.7.0-rc1",
|
||||||
"description": "Classic modular Front-End UI library",
|
"description": "Classic modular Front-End UI library",
|
||||||
"main": "dist/layui.js",
|
"main": "dist/layui.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -983,7 +983,7 @@ a cite{font-style: normal; *cursor:pointer;}
|
|||||||
|
|
||||||
.layui-table-patch .layui-table-cell{padding: 0; width: 30px;}
|
.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;}
|
.layui-table-edit:focus{border-color: #5FB878!important;}
|
||||||
select.layui-table-edit{padding: 0 0 0 10px; border-color: #d2d2d2;}
|
select.layui-table-edit{padding: 0 0 0 10px; border-color: #d2d2d2;}
|
||||||
.layui-table-view .layui-form-switch,
|
.layui-table-view .layui-form-switch,
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
,Layui = function(){
|
,Layui = function(){
|
||||||
this.v = '2.6.13'; // layui 版本号
|
this.v = '2.7.0-rc1'; // layui 版本号
|
||||||
}
|
}
|
||||||
|
|
||||||
//识别预先可能定义的指定全局对象
|
//识别预先可能定义的指定全局对象
|
||||||
|
@ -1008,13 +1008,9 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
|||||||
|
|
||||||
//td 内容
|
//td 内容
|
||||||
var content = function(){
|
var content = function(){
|
||||||
if( item3.totalRowDecimalScale == null || isNaN(item3.totalRowDecimalScale) ||
|
|
||||||
item3.totalRowDecimalScale < 0 || item3.totalRowDecimalScale > 10 ){
|
|
||||||
// 如果检测到非法值就重设为2。至于非法值的定义这里是我自己定义的。
|
|
||||||
item3.totalRowDecimalScale = 2;
|
|
||||||
}
|
|
||||||
var text = item3.totalRowText || ''
|
var text = item3.totalRowText || ''
|
||||||
,thisTotalNum = parseFloat(totalNums[field]).toFixed(item3.totalRowDecimalScale)
|
,decimals = item3.totalRowDecimals || 2
|
||||||
|
,thisTotalNum = parseFloat(totalNums[field]).toFixed(decimals)
|
||||||
,tplData = {}
|
,tplData = {}
|
||||||
,getContent;
|
,getContent;
|
||||||
|
|
||||||
@ -2168,4 +2164,4 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
|||||||
exports(MOD_NAME, table);
|
exports(MOD_NAME, table);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user