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 2021/12/03 09:07:00 UTC
[GitHub] [echarts] Sugarmant opened a new issue #16167: [Bug] 按需引入使用echarts,valueAnimation失效的问题
Sugarmant opened a new issue #16167:
URL: https://github.com/apache/echarts/issues/16167
### Version
5.2.2
### Link to minimal reproduction
https://juejin.cn/post/7037390601448325128
### Steps To Reproduce
check this link https://juejin.cn/post/7037390601448325128
### Current Behavior
`import * as echarts from 'echarts/core'`
Use this way to import core.js file that will cause these code dosen't work .
```
import { installLabelLayout } from '../label/installLabelLayout';
use(installLabelLayout);
```
### Expected Behavior
fix it?
### Environment
```markdown
- OS:win10
- Browser:chrome
- Framework:vue@3
```
### Any additional comments?
nope
--
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 #16167: [Bug] 按需引入使用echarts,valueAnimation失效的问题
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16167:
URL: https://github.com/apache/echarts/issues/16167#issuecomment-991710435
这个目前确实会在生产构建时被 **_tree-shaking_** 移除。使用最小化引入时建议如下引入 `LabelLayout` 特性并使用 `use` API 安装该模块。
```ts
import * as echarts from 'echarts/core'
import { LabelLayout } from 'echarts/features'
echarts.use(LabelLayout)
```
--
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 #16167: [Bug] 按需引入使用echarts,valueAnimation失效的问题
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16167:
URL: https://github.com/apache/echarts/issues/16167#issuecomment-985336549
@Sugarmant 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**
The problem of usingecharts, valueanal invalidation is introduced on demand
</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] plainheart commented on issue #16167: [Bug] 按需引入使用echarts,valueAnimation失效的问题
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16167:
URL: https://github.com/apache/echarts/issues/16167#issuecomment-991710435
这个目前确实会在生产构建时被 **_tree-shaking_** 移除。使用最小化引入时建议如下引入 `LabelLayout` 特性并使用 `use` API 安装该模块。
```ts
import * as echarts from 'echarts/core'
import { LabelLayout } from 'echarts/features'
echarts.use(LabelLayout)
```
--
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