mirror of
https://gitee.com/layui/layui.git
synced 2025-10-26 18:59:15 +08:00
优化 layer 的 photos 层对 lay-src 属性的支持
This commit is contained in:
@@ -1351,7 +1351,7 @@ layer.photos = function(options, loop, key){
|
||||
data.push({
|
||||
alt: othis.attr('alt'),
|
||||
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')
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user