# component-template **Repository Path**: rtpay/component-template ## Basic Information - **Project Name**: component-template - **Description**: 可视化图表插件开发模板, 可开发自定义的图表组件添加到Data Hu报表设计器中 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-04-05 - **Last Updated**: 2022-04-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @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](https://datahu.cn/docs/guide/plugin.html)