-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
初始动画失效 #533
Comments
同样有此问题 |
Currently to handle the problem reported in #518 (charts have a chance to not fit into containers correctly), we are calling Actually I think we are in a dilemma that we can't keep both features work in all scenarios. When containers are resized during initial animation, charts with I think the potential workaround here is:
... so we'll only start animation after initial resize. |
我也出现了这个问题,初始动画,更新动画都没有了,缓动效果都不生效。解决办法可以具体一些点吗?或者编辑一个demo,我没太明白是什么意思。谢谢您! |
我晚些时候会发一个新版本,折中处理一下这个问题(同时改动也会带来一些风险):
|
Fixed in |
The type of this issue / Issue 类型
Not introduced by ECharts / 非 ECharts 本身问题
Problems about ECharts itself are not handled in this repo. / 本 repo 不负责处理 ECharts 本身的问题。
Details / 详情
第一次设置 option 后没有初始动画,我看了下源码,原因是 第 151,152行代码
当 echarts 开始做初始动画时,该处紧接着调用了图表的 resize 事件,此时图表还未运行完动画,导致图表初始入场动画失效
Vue version / Vue 版本
How are you importing Vue-ECharts? / 你是如何引入 Vue-ECharts 的?
vue-echarts
with a bundler environment / 在 webpack 等打包工具环境下引入vue-echarts
<script>
tags / 通过<script>
标签引入全局变量The version of Vue-ECharts you are using / Vue-ECharts 的版本
Reproduction link / 复现链接
For bug reports, please provide the steps to reproduce and if possible a minimal demo of the problem. Please paste the link to your CodeSandbox demo below: (Vue 3 template / Vue 2 template)
**对于 Bug 报告,请在下面提供复现的步骤,最好是最小化的能够重现问题的 demo。请在下方贴入在 CodeSandbox 上 demo 的链接:(复现地址)
The text was updated successfully, but these errors were encountered: