Skip to content

Commit 607ad1d

Browse files
author
hikki
committed
v5.0
1 parent 28644c2 commit 607ad1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/assets/component.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,8 @@ window.ComponentLine = class {
967967
/*delay image loading*/
968968
if(val.type === 'image'){
969969
setTimeout(()=>{
970-
_component.imgDelay(`${this.NAME}-${column}-img`,200,true);
970+
let zoom = val.zoom === false ? false : true;
971+
_component.imgDelay(`${this.NAME}-${column}-img`,200,zoom);
971972
});
972973
}
973974
}
@@ -1067,8 +1068,8 @@ window.ComponentLine = class {
10671068
setTimeout(()=>{
10681069
let src = dom.getAttribute('data-src');
10691070
dom.setAttribute('src',src);
1071+
if(this.COLUMNS[column].zoom === false)return;
10701072
let img = document.createElement('img');
1071-
dom.setAttribute('data-zoom','0');
10721073
dom.addEventListener('mouseover', function(e) {
10731074
document.body.append(img);
10741075
img.style.position = 'absolute';

0 commit comments

Comments
 (0)