Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sentsim committed May 18, 2021
1 parent 5667a18 commit b5f6f89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/table.js
Expand Up @@ -949,7 +949,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
if(!options.totalRow) return;

layui.each(data, function(i1, item1){
if(item1.length === 0) return;
//若数据项为空数组,则不往下执行(因为删除数据时,会将原有数据设置为 [])
if(layui._typeof(item1) === 'array' && item1.length === 0) return;

that.eachCols(function(i3, item3){
var field = item3.field || i3
Expand Down

0 comments on commit b5f6f89

Please sign in to comment.