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-unsubscr...@echarts.apache.org

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



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

Reply via email to