From b391ade958547819277adcecacdca759625e5c1c 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, 6 Sep 2023 20:52:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20`lay.getStyleRules()`=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=9A=84=E5=9B=9E=E8=B0=83=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/lay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/lay.js b/src/modules/lay.js index 21d0b6a1..4c4791b2 100644 --- a/src/modules/lay.js +++ b/src/modules/lay.js @@ -135,7 +135,7 @@ if (typeof callback === 'function') { layui.each(rules, function(i, item){ - if (callback(item)) return true; + if (callback(item, i)) return true; }); }