2015-07-15 16:23:03 +08:00
|
|
|
# Ant Design [![](https://img.shields.io/travis/ant-design/ant-design.svg?style=flat-square)](https://travis-ci.org/ant-design/ant-design) [![npm package](https://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd) [![Dependency Status](https://david-dm.org/ant-design/ant-design.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design)
|
2015-05-07 18:50:36 +08:00
|
|
|
|
2015-07-03 18:06:47 +08:00
|
|
|
一套企业级的前端设计语言和基于 React 的实现。
|
2015-05-08 11:56:39 +08:00
|
|
|
|
2015-06-16 21:16:04 +08:00
|
|
|
仍在紧密开发中,预计 8 月份推出 beta 版本。
|
2015-06-14 18:28:08 +08:00
|
|
|
|
2015-06-14 18:36:02 +08:00
|
|
|
![](https://t.alipayobjects.com/images/rmsweb/T11aVgXc4eXXXXXXXX.svg)
|
2015-06-14 18:29:20 +08:00
|
|
|
|
2015-07-02 12:12:13 +08:00
|
|
|
|
2015-06-14 18:28:08 +08:00
|
|
|
## 特性
|
|
|
|
|
2015-07-08 20:08:19 +08:00
|
|
|
- 企业级金融产品的交互语言和视觉体系。
|
|
|
|
- 丰富实用的 React UI 组件。
|
2015-06-15 18:18:42 +08:00
|
|
|
- 基于 React 的组件化开发模式。
|
2015-06-14 18:28:08 +08:00
|
|
|
- 背靠 npm 生态圈。
|
2015-07-08 20:08:19 +08:00
|
|
|
- 基于 webpack 的调试构建方案,支持 ES6。
|
|
|
|
|
2015-06-14 18:28:08 +08:00
|
|
|
|
2015-07-15 18:17:05 +08:00
|
|
|
## 示例
|
2015-07-03 12:21:29 +08:00
|
|
|
|
2015-07-03 18:06:47 +08:00
|
|
|
```jsx
|
|
|
|
var antd = require('antd');
|
|
|
|
var Datepicker = antd.Datepicker;
|
2015-07-03 12:21:29 +08:00
|
|
|
|
2015-07-03 18:06:47 +08:00
|
|
|
React.render(<Datepicker />, mountNode);
|
|
|
|
```
|
2015-06-14 18:28:08 +08:00
|
|
|
|
|
|
|
## 链接
|
|
|
|
|
|
|
|
- [首页](http://ant.design/)
|
2015-07-08 20:08:19 +08:00
|
|
|
- [文档](http://ant.design/docs/introduce)
|
2015-06-14 18:28:08 +08:00
|
|
|
- [组件](http://ant.design/components/)
|
2015-07-17 00:28:15 +08:00
|
|
|
- [构建调试工具](https://github.com/ant-design/antd-bin)
|
|
|
|
- [开发计划](https://github.com/ant-design/ant-design/issues/9)
|
2015-07-21 10:44:43 +08:00
|
|
|
- [修改记录](CHANGELOG.md)
|
2015-06-14 18:28:08 +08:00
|
|
|
- [React 模块](http://react-component.github.io/)
|
2015-07-08 20:08:19 +08:00
|
|
|
- [React 代码规范](https://github.com/react-component/react-component.github.io/blob/master/docs/zh-cn/component-code-style.md)
|
|
|
|
- [组件设计原则](https://github.com/react-component/react-component.github.io/blob/master/docs/zh-cn/component-design.md)
|
2015-06-14 18:28:08 +08:00
|
|
|
|
|
|
|
|
2015-06-15 18:16:21 +08:00
|
|
|
## 如何贡献
|
|
|
|
|
|
|
|
我们欢迎任何形式的贡献,有任何建议或意见您可以进行 [Pull Request](https://github.com/ant-design/ant-design/pulls),或者给我们[提问](https://github.com/ant-design/ant-design/issues)。
|
|
|
|
|
|
|
|
|
2015-06-14 18:28:08 +08:00
|
|
|
## 开发说明
|
|
|
|
|
2015-05-08 11:56:39 +08:00
|
|
|
#### 本地调试
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm start
|
|
|
|
```
|
|
|
|
|
|
|
|
然后访问 http://127.0.0.1:8000 。
|
|
|
|
|
2015-07-21 18:09:49 +08:00
|
|
|
#### [网站](http://ant.design)部署
|
2015-05-08 11:56:39 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm run deploy
|
|
|
|
```
|
2015-05-21 20:36:13 +08:00
|
|
|
|
2015-07-21 12:05:39 +08:00
|
|
|
#### 版本构建
|
2015-05-21 20:36:13 +08:00
|
|
|
|
|
|
|
```bash
|
2015-07-21 12:02:15 +08:00
|
|
|
$ npm run release
|
2015-07-02 12:12:13 +08:00
|
|
|
```
|