fix(layer): getFrameIndex 行为与 2.x 保持一致 (#2592)

This commit is contained in:
morning-star 2025-03-28 17:20:17 +08:00 committed by GitHub
parent 83ce0d3817
commit 32f298006c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1068,6 +1068,7 @@ layer.getChildFrame = function(selector, index){
// 得到当前 iframe 层的索引,子 iframe 时使用
layer.getFrameIndex = function(name){
if(!name) return;
return $('#'+ name).parents('.'+doms[4]).attr('times');
};