0.0.7 • Published 3 years ago

dashboard-customer v0.0.7

Weekly downloads
9
License
MIT
Repository
-
Last release
3 years ago

项目初始化

需要更改package.json中的 "version": "0.0.3", //改为0.0.1 "name": "dashboard-customer", //改为自己的项目名称 "size-limit": { //把dashboard-customer改为自己的项目名称 "path": "dist/dashboard-customer.cjs.production.min.js", "limit": "10 KB" }, { //把dashboard-customer改为自己的项目名称 "path": "dist/dashboard-customer.esm.js", "limit": "10 KB" } ,

更改tsdx.config.js文件 extract: 'dashboard-customer.min.css' //把dashboard-customer改为自己的项目名称

更改example/index.tsx import '../dist/dashboard-customer.min.css'; //把dashboard-customer改为自己的项目名称

组件编写步骤

在src/components中 1、选择一个模版copy 2、更改组件名和编辑界面名 3、编写显示界面 4、编写配置界面(个性化图表不用编写) 5、在Index中导出配置 6、发布到npm仓库

##jenkins yarn add glory-dashboard-extension@npm:dashboard-customer@0.0.1