# wuss-weapp **Repository Path**: cpanmac/wuss-weapp ## Basic Information - **Project Name**: wuss-weapp - **Description**: :whale:wuss-weapp 一款高质量,组件齐全,高自定义的微信小程序UI组件库 - **Primary Language**: 微信 - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 43 - **Created**: 2018-10-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
## 演示图片
## 快速上手
在开始使用 Wuss Weapp 之前,你需要先阅读 [微信小程序自定义组件](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/) 的相关文档。
### 如何使用
#### 方法一 [推荐] (通过npm安装依赖并在小程序构建npm模块)
1. 通过使用shell命令或git定位到当前小程序开发目录,然后使用npm或者yarn安装依赖。
```shell
npm install --production wuss-weapp
```
或者
```shell
yarn add --production wuss-weapp
```
2. 当依赖安装完成后即可在微信小程序开发者工具里点击 [工具] => [构建npm],此时若出现弹窗则记得吧 “使用npm模块” 勾上,若无弹窗则待构建完成后在详情里面手动勾上 “使用npm模块”。
3. 构建完成后即可添加需要的组件。在页面的 json 中配置:
```json
"usingComponents": {
"w-button": "wuss-weapp/w-button/index"
}
```
4. 在 wxml 中使用组件:
```html