You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/07/30 16:08:39 UTC
[echarts-examples] branch gh-pages updated: fix(explore): fix example card placeholder
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 27ab94fa fix(explore): fix example card placeholder
27ab94fa is described below
commit 27ab94fa318f24893ed551f59e58606118a6229b
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Sun Jul 31 00:08:03 2022 +0800
fix(explore): fix example card placeholder
---
src/explore/ExampleCard.vue | 2 +-
src/explore/Explore.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/explore/ExampleCard.vue b/src/explore/ExampleCard.vue
index cd9e82c5..e94f0b3a 100644
--- a/src/explore/ExampleCard.vue
+++ b/src/explore/ExampleCard.vue
@@ -4,7 +4,7 @@
<picture>
<source :data-srcset="screenshotURLWebP" type="image/webp" />
<source :data-srcset="screenshotURLPNG" type="image/png" />
- <img class="chart-area" data-src="../asset/placeholder.jpg" />
+ <img class="chart-area" src="../asset/placeholder.jpg" />
</picture>
</a>
<div>
diff --git a/src/explore/Explore.vue b/src/explore/Explore.vue
index 6828252c..1d4371ce 100644
--- a/src/explore/Explore.vue
+++ b/src/explore/Explore.vue
@@ -224,7 +224,7 @@ export default {
load_delay: 400,
class_loaded: LAZY_LOADED_CLASS,
callback_error(img) {
- const fallbackSrc = img.getAttribute('data-src');
+ const fallbackSrc = img.src;
const children = img.parentElement.children;
for (let i = 0, len = children.length; i < len; i++) {
const el = children[i];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org