Skip to content
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

关于容器display:none的情况下的自动获取宽度和高度 #530

Closed
3 of 6 tasks
imlucan opened this issue Mar 17, 2021 · 1 comment
Closed
3 of 6 tasks

Comments

@imlucan
Copy link

imlucan commented Mar 17, 2021

Help / 帮助

Replace the [ ] with [x] to check an option. / 将 [ ] 替换为 [x] 以选择对应选项。

The type of this issue / Issue 类型

  • Feature request / 新特性需求
  • [] Bug report / Bug 报告

Not introduced by ECharts / 非 ECharts 本身问题

Problems about ECharts itself are not handled in this repo. / 本 repo 不负责处理 ECharts 本身的问题。

  • I've checked it's not a problem of ECharts itself. / 我已检查过,这个问题非 ECharts 本身的问题。

Details / 详情

Vue version / Vue 版本

  • Vue 3
  • Vue 2

How are you importing Vue-ECharts? / 你是如何引入 Vue-ECharts 的?

  • Importing vue-echarts with a bundler environment / 在 webpack 等打包工具环境下引入 vue-echarts
  • Using the global variable by including <script> tags / 通过 <script> 标签引入全局变量

The version of Vue-ECharts you are using / Vue-ECharts 的版本

eg. 6.0.0-beta.5

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。
如果将根元素放到一个display:none的容器里面
就会提示无法获取width&height,

例如我现在把图表放到tap控件内部就会失去效果

@Justineo
Copy link
Member

Duplicate of #525

@Justineo Justineo marked this as a duplicate of #525 Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants