mirror of
https://gitee.com/layui/layui.git
synced 2025-10-27 03:09:32 +08:00
update
This commit is contained in:
@@ -171,7 +171,7 @@ layui.use(['table', 'dropdown'], function(){
|
||||
]]
|
||||
|
||||
//,autoSort: false // 禁用前端自动排序,由服务的完成排序
|
||||
,initSort11111: { // 初始排序状态
|
||||
,initSort: { // 初始排序状态
|
||||
field: 'experience' //排序字段,对应 cols 设定的各字段名
|
||||
,type: 'desc' //排序方式 asc: 升序、desc: 降序、null: 默认排序
|
||||
}
|
||||
@@ -263,7 +263,7 @@ layui.use(['table', 'dropdown'], function(){
|
||||
//,url: '404'
|
||||
//,elem: null
|
||||
//,page: {curr: 5, limit: 20}
|
||||
//,scrollPos: 'fixed' // 保持滚动条位置不变
|
||||
,scrollPos: 'fixed' // 保持滚动条位置不变
|
||||
});
|
||||
break;
|
||||
case 'reloadData-deep':
|
||||
|
||||
@@ -816,7 +816,7 @@
|
||||
});
|
||||
|
||||
return that;
|
||||
}
|
||||
};
|
||||
|
||||
//无效日期范围的标记
|
||||
Class.prototype.limit = function(elem, date, index, time){
|
||||
|
||||
@@ -1315,6 +1315,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||
} else { //清除排序
|
||||
thisData = layui.sort(data, table.config.indexName);
|
||||
delete that.sortKey;
|
||||
delete options.initSort;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user