Browse Source

发版

pull/486/head v2.5.1
贤心 6 years ago
parent
commit
4f7f5131c6
  1. 2
      dist/lay/modules/table.js
  2. 2
      dist/layui.all.js
  3. 3
      src/lay/modules/table.js

2
dist/lay/modules/table.js vendored

File diff suppressed because one or more lines are too long

2
dist/layui.all.js vendored

File diff suppressed because one or more lines are too long

3
src/lay/modules/table.js

@ -757,7 +757,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
res[response.dataName] = options.data.concat().splice(startLimit, options.limit);
res[response.countName] = options.data.length;
that.renderData(res, curr, (options.page && options.page.count) ? options.page : options.data.length), sort();
that.renderData(res, curr, (options.page && options.page.count) ? options.page.count : options.data.length), sort();
that.setColsWidth();
typeof options.done === 'function' && options.done(res, curr, res[response.countName]);
}
@ -914,6 +914,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
//同步分页状态
if(options.page){
console.log(count);
options.page = $.extend({
elem: 'layui-table-page' + options.index
,count: count

Loading…
Cancel
Save