You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2021/08/25 01:34:23 UTC

[GitHub] [echarts-theme-builder] dwtom opened a new issue #37: 关于echarts按需引入

dwtom opened a new issue #37:
URL: https://github.com/apache/echarts-theme-builder/issues/37


   问题描述:使用了自定义主题之后,echarts按需引入失效
   
   echarts版本 5.1.2,使用的是js版本的主题
   
   echarts按需引入不使用自定义主题,打包构建之后echarts的大小367kb
   
   ehcarts整体引入不使用自定义主题,打包构建799kb
   
   echarts按需引入并使用自定义主题,打包构建809kb
   
   echarts整体引入并使用自定义主题,打包构建799kb
   
   按需引入配置如下,也很常规,自定义主题基于官网主题编辑器默认方案修改了个别颜色
   ```
   import { use } from 'echarts/core';
   import {
     CanvasRenderer
   } from 'echarts/renderers';
   import {
     PieChart,
     LineChart,
     MapChart
   } from 'echarts/charts';
   import {
     TooltipComponent,
     LegendComponent,
     GridComponent,
     GeoComponent
   } from 'echarts/components';
   
   use([
     CanvasRenderer,
     PieChart,
     LineChart,
     MapChart,
     GridComponent,
     TooltipComponent,
     LegendComponent,
     GeoComponent
   ]);
   ```
   


-- 
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: dev-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org


[GitHub] [echarts-theme-builder] plainheart commented on issue #37: 关于echarts按需引入

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #37:
URL: https://github.com/apache/echarts-theme-builder/issues/37#issuecomment-905112601


   现在引入主题之后确实会影响按需引入,5.3 会处理下这个问题。apache/echarts#14372


-- 
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: dev-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org


[GitHub] [echarts-theme-builder] dwtom commented on issue #37: 关于echarts按需引入

Posted by GitBox <gi...@apache.org>.
dwtom commented on issue #37:
URL: https://github.com/apache/echarts-theme-builder/issues/37#issuecomment-905141040


   > 现在引入主题之后确实会影响按需引入,5.3 会处理下这个问题。[apache/echarts#14372](https://github.com/apache/echarts/pull/14372)
   好的
   


-- 
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: dev-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org