From 4f3b9f68e7c2d8f744f813bdadf9aeef43421425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 11 Jul 2023 15:41:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20radio=20=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=B8=AD=E8=8B=A5=E5=AD=98=E5=9C=A8=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=EF=BC=8C=E9=80=89=E4=B8=AD=E6=97=B6=E8=AF=A5=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E8=A2=AB=E5=BC=BA=E5=88=B6=E6=9B=B4=E6=94=B9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/form.js b/src/modules/form.js index 44e7e8bf..228dc1d6 100644 --- a/src/modules/form.js +++ b/src/modules/form.js @@ -807,12 +807,12 @@ layui.define(['lay', 'layer', 'util'], function(exports){ var next = $(this).next('.' + CLASS); this.checked = false; next.removeClass(CLASS + 'ed'); - next.find('.layui-icon').removeClass(ANIM + ' ' + ICON[0]).addClass(ICON[1]); + next.children('.layui-icon').removeClass(ANIM + ' ' + ICON[0]).addClass(ICON[1]); }); radio[0].checked = true; reElem.addClass(CLASS + 'ed'); - reElem.find('.layui-icon').addClass(ANIM + ' ' + ICON[0]); + reElem.children('.layui-icon').addClass(ANIM + ' ' + ICON[0]); layui.event.call(radio[0], MOD_NAME, 'radio('+ filter +')', { elem: radio[0],