You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/05/03 08:56:20 UTC
[GitHub] [echarts] Huangpuguang opened a new issue, #16973: [Bug] 开发环境中不出现,经过打包后 echarts.init实例返回值过一段时间会改变成HTML标签。
Huangpuguang opened a new issue, #16973:
URL: https://github.com/apache/echarts/issues/16973
### Version
5.2.2
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
1.在el-tabs中定义了3个容器,默认显示第一个:

2.分别初始化3个实例,并打印它们:

### Current Behavior
在开发环境中,这一段代码能正确地运行,延时前后打印出来的实例是相同的,如下图所示:

但是经过打包之后,后面的两个实例在延时之后,打印出来的是HTML标签:

所以,在打包的环境中,不能调用后两个实例的clear\setoption\resize等方法。
### Expected Behavior
实例不改变,可以调用实例的clear\setoption\resize等方法。
### Environment
```markdown
- OS: win10家庭中文版 19044.1645
- Browser: Chrome/100.0.4896.127
- Framework: vue@3.2.20 element-plus@1.2.0-beta.6 vite@2.6.5
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #16973: [Bug] 开发环境中不出现,经过打包后 echarts.init实例返回值过一段时间会改变成HTML标签。
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16973:
URL: https://github.com/apache/echarts/issues/16973#issuecomment-1115874940
@Huangpuguang It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Bug] Does not appear in the development environment, after packaging the echarts.init instance return value will change to HTML tags after a period of time.
**BODY**
### Version
5.2.2
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
1. Three containers are defined in el-tabs, the first one is displayed by default:

2. Initialize 3 instances separately, and print them:

### Current Behavior
In the development environment, this piece of code can run correctly, and the instances printed before and after the delay are the same, as shown in the following figure:

But after packaging, the following two instances print out HTML tags after a delay:

Therefore, in the packaged environment, methods such as clear\setoption\resize of the latter two instances cannot be called.
### Expected Behavior
The instance does not change, and methods such as clear\setoption\resize of the instance can be called.
### Environment
````markdown
- OS: win10 home Chinese version 19044.1645
- Browser: Chrome/100.0.4896.127
- Framework: vue@3.2.20 element-plus@1.2.0-beta.6 vite@2.6.5
````
### Any additional comments?
_No response_
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] Huangpuguang commented on issue #16973: [Bug] 开发环境中不出现,经过打包后 echarts.init实例返回值过一段时间会改变成HTML标签。
Posted by GitBox <gi...@apache.org>.
Huangpuguang commented on issue #16973:
URL: https://github.com/apache/echarts/issues/16973#issuecomment-1115918931
> @Huangpuguang 看起来是因为你的 template 里面的 ref 和 echarts 的实例名一样导致的,建议使用不同的名字
好的,多谢,确实是这个问题,修改了ref中的名字就解决了。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart commented on issue #16973: [Bug] 开发环境中不出现,经过打包后 echarts.init实例返回值过一段时间会改变成HTML标签。
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16973:
URL: https://github.com/apache/echarts/issues/16973#issuecomment-1115886588
@Huangpuguang 看起来是因为你的 template 里面的 ref 和 echarts 的实例名一样导致的,建议使用不同的名字
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #16973: [Bug] 开发环境中不出现,经过打包后 echarts.init实例返回值过一段时间会改变成HTML标签。
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16973:
URL: https://github.com/apache/echarts/issues/16973#issuecomment-1115883081
@Huangpuguang Please provide a demo for the issue either with [Official Editor](https://echarts.apache.org/examples/editor.html), [CodePen](https://codepen.io/Ovilia/pen/dyYWXWM), [CodeSandbox](https://codesandbox.io/s/echarts-basic-example-template-mpfz1s) or [JSFiddle](https://jsfiddle.net/plainheart/e46ozpqj/7/).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] closed issue #16973: [Bug] 开发环境中不出现,经过打包后 echarts.init实例返回值过一段时间会改变成HTML标签。
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #16973: [Bug] 开发环境中不出现,经过打包后 echarts.init实例返回值过一段时间会改变成HTML标签。
URL: https://github.com/apache/echarts/issues/16973
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org