From 8f12f08057066995e7933ab0d778bcacbb2958be Mon Sep 17 00:00:00 2001 From: sight <26325820+Sight-wcg@users.noreply.github.com> Date: Fri, 10 May 2024 17:18:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(table):=20=E4=BF=AE=E5=A4=8D=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=95=B0=E6=8D=AE=E6=97=B6=20loading=20=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E4=B8=A2=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index 5f6ebd10f..524a22963 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -906,7 +906,6 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ that.layMain.find('table').width('auto'); } - that.loading(!0); }; // 重置表格尺寸/结构 @@ -971,6 +970,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ that.syncCheckAll(); that.renderForm(); that.setColsWidth(); + that.loading(true); }; // 初始页码 @@ -997,6 +997,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ }; var done = function(res, origin){ that.setColsWidth(); + that.loading(true); typeof options.done === 'function' && options.done( res, curr, res[response.countName], origin );