优化 `lay.getStyleRules()` 方法的回调传参

pull/1368/head
贤心 2023-09-06 20:52:25 +08:00
parent ada3ad2c1e
commit b391ade958
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@
if (typeof callback === 'function') { if (typeof callback === 'function') {
layui.each(rules, function(i, item){ layui.each(rules, function(i, item){
if (callback(item)) return true; if (callback(item, i)) return true;
}); });
} }