Skip to content

Commit

Permalink
fix:多次点击出现灰色蒙层 (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keeyuu authored Oct 17, 2023
1 parent 5ea2d4d commit 5d3e02e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/public/example/scripts/preview-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ var cherryConfig = {
button: false,
navbar: false,
title: [1, (image, imageData) => `${image.alt.replace(/#.+$/, '')} (${imageData.naturalWidth} × ${imageData.naturalHeight})`],
hidden(){
tmp.destroy()
},
});
tmp.show();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/scripts/preview-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ var cherryConfig = {
button: false,
navbar: false,
title: [1, (image, imageData) => `${image.alt.replace(/#.+$/, '')} (${imageData.naturalWidth} × ${imageData.naturalHeight})`],
hidden(){
tmp.destroy()
},
});
tmp.show();
}
Expand Down

0 comments on commit 5d3e02e

Please sign in to comment.