From c0dac535d1568bee8d9a3ca51e3050d39586a960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Wed, 22 Feb 2023 22:28:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20=E7=9A=84=20radio?= =?UTF-8?q?=20=E4=BA=8B=E4=BB=B6=EF=BC=8C=E5=BD=93=20`disabled`=20?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=97=B6=E4=B8=8D=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index 77a04f2f..4138febe 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2130,6 +2130,8 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ var checked = radio[0].checked; var index = radio.parents('tr').eq(0).data('index'); + if(radio[0].disabled) return; + // 单选框选中状态 that.setRowChecked({ type: 'radio', @@ -2138,7 +2140,8 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ // 事件 layui.event.call( - radio[0], MOD_NAME, 'radio('+ filter +')', + radio[0], + MOD_NAME, 'radio('+ filter +')', commonMember.call(radio[0], { checked: checked })