Authored by ww

fix: 表格高度优化还原

@@ -327,16 +327,18 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util', 'sessions', 'common' @@ -327,16 +327,18 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util', 'sessions', 'common'
327 delete options.page.elem; 327 delete options.page.elem;
328 delete options.page.jump; 328 delete options.page.jump;
329 } 329 }
  330 + if(options.limit == 10){
  331 + options.limit = 20;
  332 + }
  333 + options.limits = [20,50,100,200];
330 334
331 if (!options.elem[0]) return that; 335 if (!options.elem[0]) return that;
332 336
333 //高度铺满:full-差距值 337 //高度铺满:full-差距值
334 - // if (options.height && /^full-\d+$/.test(options.height)) {  
335 - // that.fullHeightGap = options.height.split('-')[1];  
336 - // options.height = _WIN.height() - that.fullHeightGap;  
337 - // }  
338 - that.fullHeightGap = 100;  
339 - options.height = _WIN.height() - that.fullHeightGap; 338 + if (options.height && /^full-\d+$/.test(options.height)) {
  339 + that.fullHeightGap = options.height.split('-')[1];
  340 + options.height = _WIN.height() - that.fullHeightGap;
  341 + }
340 342
341 //初始化一些参数 343 //初始化一些参数
342 that.setInit(); 344 that.setInit();