pull/1072/head
贤心 2022-07-06 08:56:32 +08:00
parent b1197797a8
commit 00d8ad2f7c
3 changed files with 4 additions and 3 deletions

View File

@ -171,7 +171,7 @@ layui.use(['table', 'dropdown'], function(){
]] ]]
//,autoSort: false // 禁用前端自动排序,由服务的完成排序 //,autoSort: false // 禁用前端自动排序,由服务的完成排序
,initSort11111: { // 初始排序状态 ,initSort: { // 初始排序状态
field: 'experience' //排序字段,对应 cols 设定的各字段名 field: 'experience' //排序字段,对应 cols 设定的各字段名
,type: 'desc' //排序方式 asc: 升序、desc: 降序、null: 默认排序 ,type: 'desc' //排序方式 asc: 升序、desc: 降序、null: 默认排序
} }
@ -263,7 +263,7 @@ layui.use(['table', 'dropdown'], function(){
//,url: '404' //,url: '404'
//,elem: null //,elem: null
//,page: {curr: 5, limit: 20} //,page: {curr: 5, limit: 20}
//,scrollPos: 'fixed' // 保持滚动条位置不变 ,scrollPos: 'fixed' // 保持滚动条位置不变
}); });
break; break;
case 'reloadData-deep': case 'reloadData-deep':

View File

@ -816,7 +816,7 @@
}); });
return that; return that;
} };
//无效日期范围的标记 //无效日期范围的标记
Class.prototype.limit = function(elem, date, index, time){ Class.prototype.limit = function(elem, date, index, time){

View File

@ -1315,6 +1315,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
} else { //清除排序 } else { //清除排序
thisData = layui.sort(data, table.config.indexName); thisData = layui.sort(data, table.config.indexName);
delete that.sortKey; delete that.sortKey;
delete options.initSort;
} }
} }