From 3e2fd79318476d97df23711f4a4107c52444f0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 12 Jun 2023 14:59:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20table=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/table-test.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/table-test.html b/examples/table-test.html index 9b901f4a..688288de 100644 --- a/examples/table-test.html +++ b/examples/table-test.html @@ -489,9 +489,14 @@ layui.use(['table', 'dropdown'], function(){ // 行单击事件 table.on('row(test)', function(obj){ - //console.log(obj); - //layer.closeAll('tips'); + // console.log(obj); + // layer.closeAll('tips'); + obj.setRowChecked({ + // type: 'radio' + }); + // layer.msg('row 事件') }); + // 行双击事件 table.on('rowDouble(test)', function(obj){ console.log(obj);