You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2022/02/22 05:15:22 UTC
[echarts-bar-racing] branch master updated: fix preview not work
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-bar-racing.git
The following commit(s) were added to refs/heads/master by this push:
new 836a880 fix preview not work
836a880 is described below
commit 836a8804b2b7688231a7f2af065edd5d12c50281
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Feb 22 13:15:17 2022 +0800
fix preview not work
---
src/components/BChart.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/components/BChart.vue b/src/components/BChart.vue
index f56b291..b7a00cd 100644
--- a/src/components/BChart.vue
+++ b/src/components/BChart.vue
@@ -231,6 +231,7 @@ export default defineComponent({
}
const dataCnt = this.chartData.length - headerLength - 1;
const that = this;
+ const isExportingVideo = this.isExportingVideo;
function step(row) {
chart.setOption({
@@ -270,7 +271,7 @@ export default defineComponent({
for (let i = 0; i < dataCnt; ++i) {
onProgress && onProgress(i, dataCnt);
// Cancled.
- if (!this.isExportingVideo) {
+ if (isExportingVideo && !this.isExportingVideo) {
chart.getZr().animation.off('frame', frameCounter);
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org