README_ZH.md 6.6 KB
Newer Older
V
vickyYe 已提交
1 2 3 4 5

<p align="center">
    <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;">
</p>

S
snandy 已提交
6
<p align="center">京东风格的轻量级 React 组件库,支持移动端 H5 和小程序开发</p>
V
vickyYe 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

<p align="center">
    <a href="http://makeapullrequest.com">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs Welcome" />
  </a>
  <a href="https://github.com/jdf2e/nutui-react">
    <img src="https://img.shields.io/npm/l/@nutui/nutui-react.svg" alt="license"/>
  </a>
  <a href="https://www.npmjs.com/package/@nutui/nutui-react">
    <img src="https://img.shields.io/npm/v/@nutui/nutui-react.svg?style=flat-square">
  </a>
  <a href="https://www.npmjs.com/package/@nutui/nutui-react">
    <img src="https://img.shields.io/npm/dt/@nutui/nutui-react.svg?style=flat-square">
  </a>
  <a href="https://github.com/jdf2e/nutui-react">
    <img src="https://img.shields.io/github/contributors/jdf2e/nutui-react" alt="GitHub contributors">
  </a>
  <a href="https://github.com/jdf2e/nutui-react">
    <img src="https://img.shields.io/github/release-date/jdf2e/nutui-react" alt="GitHub Release Date">
  </a>
  <a href="https://github.com/jdf2e/nutui-react">
    <img src="https://img.shields.io/github/commit-activity/w/jdf2e/nutui-react" alt="GitHub commit activity">
   </a>
</p>

<p align='center'>
  <img src="https://img12.360buyimg.com/imagetools/jfs/t1/202336/18/18586/7437/61b832ccE0b13d53d/18605da7232a5a0e.png" height="180" alt="NutUI-React" />  &nbsp;
  <img src="https://img13.360buyimg.com/imagetools/jfs/t1/102323/22/33163/27773/632a7855E75c9fa02/8c351778f47d24f5.jpg" width="200" alt="NutUI-React" />
</p>

---
V
vickyYe 已提交
38
> Nut[nʌt],源自电影《冰河世纪》里松鼠 Scrat "执迷不悟",一生追求,即便引发大灾难也绝不松手的坚果。
V
vickyYe 已提交
39

V
vickyYe 已提交
40
简体中文 | [English](./README.md)
V
vickyYe 已提交
41

V
vickyYe 已提交
42
##  特性
V
vickyYe 已提交
43

X
xiaoyatong 已提交
44 45
* 🚀 70+ 高质量组件, 覆盖移动端主流场景
* 📖 基于京东 APP 11.0 视觉规范
V
vickyYe 已提交
46 47 48 49 50
* 🍭 支持按需引用
* 📖 详尽的文档和示例
* 💪 支持 TypeScript
* 💪 支持服务端渲染(测试阶段)
* 🍭 支持定制主题
X
xiaoyatong 已提交
51
* 🍭 单元测试覆盖率超过90%, 保障稳定性
V
vickyYe 已提交
52
* 📖 提供 Sketch 设计资源
V
vickyYe 已提交
53

X
xiaoyatong 已提交
54 55 56 57

## 项目运行

### 本地运行H5
A
AnteeHub 已提交
58 59
```sh
# 克隆仓库
X
xiaoyatong 已提交
60 61
git clone https://github.com/jdf2e/nutui-react.git

A
AnteeHub 已提交
62
# 进入项目根目录
X
xiaoyatong 已提交
63 64
cd nutui-react

A
AnteeHub 已提交
65
# 安装依赖
X
xiaoyatong 已提交
66 67
npm install

A
AnteeHub 已提交
68 69
# 进入开发模式
# 浏览器访问:http://localhost:3000(如果已启动前台程序,则不需打开此地址)
X
xiaoyatong 已提交
70 71 72 73
npm run dev

```
### 本地运行小程序
A
AnteeHub 已提交
74 75
```sh
# 克隆仓库
X
xiaoyatong 已提交
76 77
git clone https://github.com/jdf2e/nutui-react.git

A
AnteeHub 已提交
78
# 进入项目根目录
X
xiaoyatong 已提交
79 80
cd nutui-react

A
AnteeHub 已提交
81
# 安装依赖
X
xiaoyatong 已提交
82 83
npm install

A
AnteeHub 已提交
84 85
# 进入小程序开发模式
# 访问:src/sites/mobile-taro/dist/weapp
X
xiaoyatong 已提交
86 87
npm run dev:taro:weapp

A
AnteeHub 已提交
88 89
# 其他小程序类似,如京东小程序
# 访问:src/sites/mobile-taro/dist/jd
X
xiaoyatong 已提交
90 91 92
npm run dev:taro:jd
```

V
vickyYe 已提交
93
## 构建版本
V
vickyYe 已提交
94

V
vickyYe 已提交
95
> AMD 环境、Webpack、Vite 等构建工具环境、服务端建议使用 es 版,非模块化环境(如通过 `<script>` 标签直接引用)建议使用 umd 压缩版。
V
vickyYe 已提交
96

V
vickyYe 已提交
97
* es **nutui.react.es.js**
V
vickyYe 已提交
98 99 100 101

* umd **nutui.umd.js**


V
vickyYe 已提交
102
## 链接
V
vickyYe 已提交
103 104 105 106

<ul>
    <li>
        <a href="https://github.com/jdf2e/nutui-react/discussions">
V
vickyYe 已提交
107
            Discussions  (用👍投票)
V
vickyYe 已提交
108 109 110 111
        </a>
    </li>
    <li>
        <a href="https://github.com/jdf2e/nutui-react/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22">
V
vickyYe 已提交
112
            Feature Requests (用👍投票)
V
vickyYe 已提交
113 114 115 116
        </a>
    </li>
     <li>
        <a href="https://github.com/jdf2e/nutui-react/labels/bug%203.0">
V
vickyYe 已提交
117
            Bugs (用👍投票)
V
vickyYe 已提交
118 119 120 121
        </a>
    </li>
     <li>
        <a href="https://github.com/jdf2e/nutui-react/issues?q=is%3Aissue+is%3Aopen+label%3Aquestion">
V
vickyYe 已提交
122
            Question  (用👍投票)
V
vickyYe 已提交
123 124 125 126
        </a>
    </li>
</ul>

V
vickyYe 已提交
127 128
## 开发交流
| 版本 | 微信群 |内部咚咚群 |
V
vickyYe 已提交
129
| --- | --- |--- |
V
vickyYe 已提交
130 131
| [NutUI React](https://github.com/jdf2e/nutui-react/issues) | <img src="https://storage.360buyimg.com/imgtools/17c67beff6-4acf07c0-609c-11ed-a6ef-69df15b605e4.png" width="100" /> 关注后回复「NutUI-React」 | 1025679314 |
| [NutUI x Taro](https://github.com/jdf2e/nutui/issues) | <img src="https://camo.githubusercontent.com/db4276b4ee4b443158195e943e9e678cb4d2afb7580f70d4d817ef0a90413aec/687474703a2f2f73746f726167652e333630627579696d672e636f6d2f7461726f2d6a642d636f6d2f7374617469632f636f6e746163745f7461726f5f6e757475695f71722e706e67" width="100" /> 关注后回复「NutUI-React」 | 1022545110 |
V
vickyYe 已提交
132

V
vickyYe 已提交
133
## 参与共建
V
vickyYe 已提交
134

X
xiaoyatong 已提交
135 136
如果您对这个项目感兴趣,欢迎参与贡献,也欢迎 "Star" 支持一下 ^_^

V
vickyYe 已提交
137
#### NutUI 社区共建倡议
V
vickyYe 已提交
138

V
vickyYe 已提交
139
[NutUI-React 邀您共建,Contributor 您好](https://github.com/jdf2e/nutui-react/discussions/348)
V
vickyYe 已提交
140

V
vickyYe 已提交
141
#### 为 NutUI 贡献代码
V
vickyYe 已提交
142

V
vickyYe 已提交
143
NutUI 的共建方向主要分为:解决 issue、修复 bug、新增组件、增加国际化、UI 定制、平台适配、跨端扩展等。
V
vickyYe 已提交
144

V
vickyYe 已提交
145
欢迎社区开发者参与共建,在贡献您的代码之前请先阅读 [《NutUI 贡献指南》](https://github.com/jdf2e/nutui-react/discussions/348)
V
vickyYe 已提交
146

V
vickyYe 已提交
147
## 问题反馈与建议
V
vickyYe 已提交
148

V
vickyYe 已提交
149
[给 NutUI 提 Issue](https://nutui.jd.com/nutui-issue-helper/?repo=jdf2e/nutui-react&lang=zh-cn)
V
vickyYe 已提交
150

V
vickyYe 已提交
151
> 在反馈问题之前,推荐阅读 [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way)、[《如何向开源社区提问题》](https://github.com/seajs/seajs/issues/545)和[《如何有效地报告 Bug》](http://www.chiark.greenend.org.uk/%7Esgtatham/bugs-cn.html),这样您能够更容易获得理解和帮助。
V
vickyYe 已提交
152

V
vickyYe 已提交
153
[参与 NutUI 社区讨论](https://github.com/jdf2e/nutui-react/discussions)
V
vickyYe 已提交
154

V
vickyYe 已提交
155
如果您有任何想法、疑问或建议,都可以参与社区讨论分享您的观点。
V
vickyYe 已提交
156

V
vickyYe 已提交
157
## 贡献者们
V
vickyYe 已提交
158

V
vickyYe 已提交
159
感谢以下所有给 NutUI 贡献过代码的 [开发者](https://github.com/jdf2e/nutui-react/graphs/contributors)
V
vickyYe 已提交
160 161

<a href="https://github.com/jdf2e/nutui-react/graphs/contributors">
V
vickyYe 已提交
162
  <img src="https://contrib.rocks/image?repo=jdf2e/nutui-react" />
V
vickyYe 已提交
163 164 165 166 167 168 169 170 171 172
</a>

## Stargazers 

[![Stargazers repo roster for @jdf2e/nutui-react](https://reporoster.com/stars/jdf2e/nutui-react)](https://github.com/jdf2e/nutui-react/stargazers)

## Forkers

[![Forkers repo roster for @jdf2e/nutui-react](https://reporoster.com/forks/jdf2e/nutui-react)](https://github.com/jdf2e/nutui-react/network/members)

V
vickyYe 已提交
173
## 开发计划
V
vickyYe 已提交
174 175 176

[Milestones](https://github.com/jdf2e/nutui-react/projects)

V
vickyYe 已提交
177
## 更新日志
V
vickyYe 已提交
178

V
vickyYe 已提交
179
本项目遵从 [Angular Style Commit Message Conventions](https://gist.github.com/stephenparish/9941e89d80e2bc58a153),更新日志请查阅 [Release](https://github.com/jdf2e/nutui-react/releases)
V
vickyYe 已提交
180

V
vickyYe 已提交
181
## 开源协议
V
vickyYe 已提交
182

V
vickyYe 已提交
183
本项目基于 **MIT** 协议