mirror of https://github.com/layui/layui
update
parent
b1197797a8
commit
00d8ad2f7c
|
@ -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':
|
||||||
|
|
|
@ -816,7 +816,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
}
|
};
|
||||||
|
|
||||||
//无效日期范围的标记
|
//无效日期范围的标记
|
||||||
Class.prototype.limit = function(elem, date, index, time){
|
Class.prototype.limit = function(elem, date, index, time){
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue