From 146adba3fe5277380ee49d55d54fbafc19614631 Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <285584806@qq.com> Date: Sun, 26 Jun 2022 14:32:25 +0800 Subject: [PATCH] =?UTF-8?q?table=20=E4=BF=AE=E5=A4=8DreloadData=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=E5=87=BA=E7=8E=B0=E5=88=86=E9=A1=B5=E6=A0=8F=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/table.js b/src/modules/table.js index 76d112f..b979319 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -756,8 +756,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){ that.layMain.append(that.layNone = layNone); // 异常情况下对page和total的内容处理 - that.layPage && that.layPage.addClass(HIDE).find('>div').html(''); - that.layTotal && that.layTotal.addClass(HIDE).find('tbody').html(''); + that.layPage && that.layPage.addClass(HIDE_V).find('>div').html(''); + that.layTotal && that.layTotal.addClass(HIDE_V).find('tbody').html(''); table.cache[that.key] = []; //格式化缓存数据 }; @@ -990,8 +990,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){ //that.layPage[(count == 0 || (data.length === 0 && curr == 1)) ? 'addClass' : 'removeClass'](HIDE); //显示隐藏合计栏 - that.layTotal[data.length == 0 ? 'addClass' : 'removeClass'](HIDE_V);; - + that.layTotal[data.length == 0 ? 'addClass' : 'removeClass'](HIDE_V); + //显示隐藏分页栏 if(!options.pagebar){ that.layPage[