-
克隆项目,从仓库克隆源码到本地
git clone [email protected]:datahu-cn/component-template.git` cd component-template
-
初始化项目
yarn
-
调试模式
yarn dev
-
发布模式
yarn build
在开发或发布后,在 dist 目录中会生成 index.es.js 文件, 在报表设计器中导入该文件即可,详细文档参见: https://datahu.cn/docs/guide/plugin.html