mirror of https://github.com/layui/layui
优化 layer 的 photos 层对 `lay-src` 属性的支持
parent
aad6bca9df
commit
af58394bf9
|
@ -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')
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue