# weapp-plugin-dashboard **Repository Path**: flxe/weapp-plugin-dashboard ## Basic Information - **Project Name**: weapp-plugin-dashboard - **Description**: 微信小程序动态仪表盘组件 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 19 - **Forks**: 3 - **Created**: 2019-07-30 - **Last Updated**: 2024-10-18 ## Categories & Tags **Categories**: weixin-lapp **Tags**: None ## README # weapp-plugin-dashboard [![npm](https://img.shields.io/npm/v/weapp-plugin-dashboard.svg)](https://www.npmjs.com/package/weapp-plugin-dashboard/) [![license](https://img.shields.io/github/license/tower1229/weapp-plugin-dashboard.svg)]() > 微信小程序仪表盘组件 ![](https://refined-x.com/asset/a/weapp-plugin-dashboard.gif) ## 安装与使用 1. 在小程序根目录(project.config.json中`miniprogramRoot`配置的目录)中依次执行 ``` npm init npm i weapp-plugin-dashboard -S --production ``` 2. 微信开发者工具,项目配置开启**使用npm模块**,并执行“工具-构建npm” 3. 在小程序页面json文件中配置 ``` "usingComponents": { "weapp-plugin-dashboard": "weapp-plugin-dashboard" } ``` 4. 在小程序页面中使用组件 ``` ``` ## 配置参数 完整的配置项及默认值如下: ``` ``` ``` ... data: { myColors: [{ percent: 50, color: '#67C23A' }, { percent: 80, color: '#E6A23C' }, { percent: 100, color: '#F56C6C' }] } ... ``` ## 关于作者 [前端路上](https://refined-x.com/)