From f57f36199cc7bd8516f07c44a284eed407d130ee Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <285584806@qq.com> Date: Tue, 13 Jun 2023 18:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=A1=8C=E5=86=85=E7=82=B9=E5=87=BB=E8=AE=BE=E7=BD=AE=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E8=A1=8C=E7=9A=84=E5=92=8C=E6=89=A7=E8=A1=8C=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E8=B0=83=E7=94=A8=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/table.js b/src/modules/table.js index e42c24c4..3924f0fd 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2444,6 +2444,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ var othis = $(this); var td = othis.closest('td'); var index = othis.parents('tr').eq(0).data('index'); + // 标记当前活动行 + that.setRowActive(index); + // 执行事件 layui.event.call( this, @@ -2456,8 +2459,6 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ } }) ); - // 标记当前活动行 - that.setRowActive(index); }; // 行工具条单击事件