@datahu/component-template 自定义图表组件的项目模板, 基于 Vue 3 + Typescript + Vite + echarts

Vue 3 + Typescript + Vite + echarts

开始开发

  1. 克隆项目,从仓库克隆源码到本地

    git clone git@github.com:datahu-cn/component-template.git`
    cd component-template
    
  2. 初始化项目

    yarn
    
  3. 调试模式

    yarn dev
    
  4. 发布模式

    yarn build
    

使用方式

在开发或发布后,在 dist 目录中会生成 index.es.js 文件, 在报表设计器中导入该文件即可,详细文档参见: https://datahu.cn/docs/guide/plugin.html