# react-component-mobile **Repository Path**: GeBiLaoWan/react-component-mobile ## Basic Information - **Project Name**: react-component-mobile - **Description**: react移动端组件库 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # React移动端组件库 v1版本,有太多不足之处, [v2版本](https://github.com/WangXueZhi/react-component-mobile/tree/v2),将会重新设计组件库和脚手架 # 开发命令 ### 构建 ```javascript gulp ``` ### 监听构建 ```javascript gulp watch ``` ### 调试模式 ```javascript gulp demo ``` 该命令会在文件改动保存时自动构建 # 开发规范 ### 命名 模块命名:如果以类的方式导出,则首字母大写,驼峰规则。 样式命名:以 "wdpc" 开头, "-" 作为连接,"-" 前后为父子元素关系,例如:wdpc-switch, wdpc-switch-bar。 ### 目录 每个模块都拥有独立的目录,代码存放该目录中独立维护 ### 模块配置 每个模块需要拥有独立的package.json配置文件指明模块路径 ### 说明文档 每个模块需要拥有独立的README.md文档,说明模块的作用和API。 ### 导出 需要在所在的父级目录中的index.ts导出对应模块 # 如何使用组件 ## 下载安装 ```bash tnpm install @wd-mobile/wd-mobile-component --save ``` ## 使用组件 ```javascript react jsx import React from "react"; import { Button } from "wd-mobile-component"; export default class App extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return(