|
|
|
# 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)
|
|
|
|
|
|
|
|
一套企业级的前端设计语言和基于 React 的实现。
|
|
|
|
|
|
|
|
设计文档和组件实现均在紧密整理和开发中,部分页面可能不完善,预计 8 月份释出正式版本。
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<a href="http://ant.design">
|
|
|
|
<img width="360" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg">
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
## 特性
|
|
|
|
|
|
|
|
- 企业级金融产品的交互语言和视觉体系。
|
|
|
|
- 丰富实用的 React UI 组件。
|
|
|
|
- 基于 React 的组件化开发模式。
|
|
|
|
- 背靠 npm 生态圈。
|
|
|
|
- 基于 webpack 的调试构建方案,支持 ES6。
|
|
|
|
|
|
|
|
|
|
|
|
## 示例
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
var antd = require('antd');
|
|
|
|
var Datepicker = antd.Datepicker;
|
|
|
|
|
|
|
|
React.render(<Datepicker />, mountNode);
|
|
|
|
```
|
|
|
|
|
|
|
|
## 链接
|
|
|
|
|
|
|
|
- [首页](http://ant.design/)
|
|
|
|
- [文档](http://ant.design/docs/introduce)
|
|
|
|
- [组件](http://ant.design/components/)
|
|
|
|
- [构建调试工具](https://github.com/ant-design/antd-bin)
|
|
|
|
- [开发计划](https://github.com/ant-design/ant-design/issues/9)
|
|
|
|
- [修改记录](CHANGELOG.md)
|
|
|
|
- [React 模块](http://react-component.github.io/)
|
|
|
|
- [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)
|
|
|
|
|
|
|
|
|
|
|
|
## 如何贡献
|
|
|
|
|
|
|
|
我们欢迎任何形式的贡献,有任何建议或意见您可以进行 [Pull Request](https://github.com/ant-design/ant-design/pulls),或者给我们[提问](https://github.com/ant-design/ant-design/issues)。
|
|
|
|
|
|
|
|
|
|
|
|
## 开发说明
|
|
|
|
|
|
|
|
#### 本地调试
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm install
|
|
|
|
$ npm start
|
|
|
|
```
|
|
|
|
|
|
|
|
然后访问 http://127.0.0.1:8000 。
|
|
|
|
|
|
|
|
#### [网站](http://ant.design)部署
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm run deploy
|
|
|
|
```
|
|
|
|
|
|
|
|
#### 版本构建
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm run release
|
|
|
|
```
|