2015-07-15 16:21:18 +08:00
|
|
|
# Ant Design [![](https://travis-ci.org/ant-design/ant-design.svg)](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-03 18:06:47 +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-08 20:08:19 +08:00
|
|
|
- [发布计划](https://github.com/ant-design/ant-design/issues/9)
|
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-03 18:06:47 +08:00
|
|
|
#### 部署到 ant.design
|
2015-05-08 11:56:39 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm run deploy
|
|
|
|
```
|
2015-05-21 20:36:13 +08:00
|
|
|
|
|
|
|
#### 构建
|
|
|
|
|
|
|
|
```bash
|
2015-07-02 12:12:13 +08:00
|
|
|
$ npm run build
|
|
|
|
```
|