From 5667a18d407350ea4eb09cf5383613151fba0163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsin@users.noreply.github.com> Date: Tue, 18 May 2021 21:22:28 +0800 Subject: [PATCH] update --- src/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index c224ff81..8f91ea33 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -783,7 +783,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){ var tds = [], tds_fixed = [], tds_fixed_r = [] ,numbers = i1 + options.limit*(curr - 1) + 1; //序号 - //若数据项为空数组,则不往下执行 + //若数据项为空数组,则不往下执行(因为删除数据时,会将原有数据设置为 []) if(layui._typeof(item1) === 'array' && item1.length === 0) return; //记录下标索引,用于恢复排序