Skip to content

Commit

Permalink
fix(table): 修复加载数据时 loading 动画丢失的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Sight-wcg committed May 10, 2024
1 parent 7f610ba commit 8f12f08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,6 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
that.layMain.find('table').width('auto');
}

that.loading(!0);
};

// 重置表格尺寸/结构
Expand Down Expand Up @@ -971,6 +970,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
that.syncCheckAll();
that.renderForm();
that.setColsWidth();
that.loading(true);
};

// 初始页码
Expand All @@ -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
);
Expand Down

0 comments on commit 8f12f08

Please sign in to comment.