优化 layer 的 photos 层对 `lay-src` 属性的支持

pull/1220/head
贤心 2 years ago
parent aad6bca9df
commit af58394bf9

@ -1351,7 +1351,7 @@ layer.photos = function(options, loop, key){
data.push({ data.push({
alt: othis.attr('alt'), alt: othis.attr('alt'),
pid: othis.attr('layer-pid'), pid: othis.attr('layer-pid'),
src: othis.attr('layer-src') || othis.attr('src'), src: othis.attr('lay-src') || othis.attr('layer-src') || othis.attr('src'),
thumb: othis.attr('src') thumb: othis.attr('src')
}); });
}); });

Loading…
Cancel
Save