2016-03-31 14:17:09 +08:00
|
|
|
|
---
|
|
|
|
|
order: 0
|
|
|
|
|
english: Ant Design of React
|
|
|
|
|
---
|
2015-06-04 17:56:09 +08:00
|
|
|
|
|
2015-08-24 17:26:42 +08:00
|
|
|
|
这里是 Ant Design 的 React 实现,开发和服务于企业级后台产品。
|
2015-07-23 21:18:36 +08:00
|
|
|
|
|
2015-08-22 20:51:10 +08:00
|
|
|
|
<div class="pic-plus">
|
|
|
|
|
<img width="150" src="https://t.alipayobjects.com/images/rmsweb/T11aVgXc4eXXXXXXXX.svg">
|
|
|
|
|
<span>+</span>
|
|
|
|
|
<img width="160" src="https://t.alipayobjects.com/images/rmsweb/T16xRhXkxbXXXXXXXX.svg">
|
|
|
|
|
</div>
|
2016-03-21 10:44:31 +08:00
|
|
|
|
|
2015-08-22 20:51:10 +08:00
|
|
|
|
<style>
|
|
|
|
|
.pic-plus > * {
|
|
|
|
|
display: inline-block!important;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
.pic-plus span {
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
color: #aaa;
|
|
|
|
|
margin: 0 20px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
2016-03-14 16:18:06 +08:00
|
|
|
|
---
|
2015-06-04 17:56:09 +08:00
|
|
|
|
|
|
|
|
|
## 特性
|
|
|
|
|
|
2016-01-12 15:51:44 +08:00
|
|
|
|
- Designed as Ant Design,提炼和服务企业级中后台产品的交互语言和视觉风格。
|
2015-12-06 17:40:04 +08:00
|
|
|
|
- [React Component](http://react-component.github.io/badgeboard/) 上精心封装的高质量 UI 库。
|
|
|
|
|
- 基于 npm + webpack + babel 的工作流,支持 ES2015。
|
2015-07-08 20:08:19 +08:00
|
|
|
|
|
2016-02-02 18:24:49 +08:00
|
|
|
|
## 安装
|
|
|
|
|
|
2016-02-23 01:03:50 +08:00
|
|
|
|
```bash
|
2016-02-02 18:24:49 +08:00
|
|
|
|
$ npm install antd
|
|
|
|
|
```
|
2015-07-03 18:06:47 +08:00
|
|
|
|
|
2015-11-17 16:33:47 +08:00
|
|
|
|
## 示例
|
2015-11-08 19:09:28 +08:00
|
|
|
|
|
2015-07-03 18:06:47 +08:00
|
|
|
|
```jsx
|
2015-12-10 16:12:10 +08:00
|
|
|
|
import { DatePicker } from 'antd';
|
|
|
|
|
ReactDOM.render(<DatePicker />, mountNode);
|
2015-07-03 18:06:47 +08:00
|
|
|
|
```
|
2015-06-15 18:16:21 +08:00
|
|
|
|
|
2015-12-08 18:05:01 +08:00
|
|
|
|
引入样式:
|
|
|
|
|
|
2015-11-14 21:38:31 +08:00
|
|
|
|
```jsx
|
2016-04-28 15:54:18 +08:00
|
|
|
|
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
|
2015-11-14 21:38:31 +08:00
|
|
|
|
```
|
|
|
|
|
|
2016-05-11 16:06:51 +08:00
|
|
|
|
按需加载可通过此写法 `import DatePicker from 'antd/lib/date-picker'` 或使用插件 [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd)(此插件支持 js 和 css 同时按需加载)。
|
2015-12-08 18:05:01 +08:00
|
|
|
|
|
|
|
|
|
|
2015-08-22 21:08:18 +08:00
|
|
|
|
## 版本
|
|
|
|
|
|
2015-09-09 10:25:58 +08:00
|
|
|
|
- 稳定版:[![npm package](http://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd)
|
2015-09-08 14:05:03 +08:00
|
|
|
|
- 开发版:[![](https://cnpmjs.org/badge/v/antd.svg?&tag=beta&subject=npm)](https://www.npmjs.org/package/antd)
|
2015-08-22 21:08:18 +08:00
|
|
|
|
|
2015-11-03 15:08:41 +08:00
|
|
|
|
## 浏览器支持
|
|
|
|
|
|
|
|
|
|
现代浏览器和 IE8 及以上。
|
|
|
|
|
|
2016-01-14 14:29:30 +08:00
|
|
|
|
> [IE8 issues](https://github.com/xcatliu/react-ie8)
|
|
|
|
|
|
2015-06-15 18:16:21 +08:00
|
|
|
|
## 链接
|
2015-06-04 17:56:09 +08:00
|
|
|
|
|
2015-06-15 18:16:21 +08:00
|
|
|
|
- [首页](http://ant.design/)
|
2016-06-06 15:17:02 +08:00
|
|
|
|
- [更新日志](/changelog)
|
2015-12-30 22:20:30 +08:00
|
|
|
|
- [开发脚手架](https://github.com/ant-design/antd-init/)
|
2016-01-19 17:30:58 +08:00
|
|
|
|
- [开发工具文档](http://ant-tool.github.io/)
|
2015-12-22 18:03:15 +08:00
|
|
|
|
- [React 组件](http://react-component.github.io/)
|
2015-07-06 14:41:37 +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-12-22 18:03:15 +08:00
|
|
|
|
- [设计规范速查手册](https://os.alipayobjects.com/rmsportal/HTXUgPGkyyxEivE.png)
|
2015-06-15 18:18:42 +08:00
|
|
|
|
|
2015-07-03 18:06:47 +08:00
|
|
|
|
## 谁在使用
|
|
|
|
|
|
|
|
|
|
- 蚂蚁金服
|
2016-03-10 17:43:54 +08:00
|
|
|
|
- 阿里巴巴
|
2016-01-06 22:34:34 +08:00
|
|
|
|
- 口碑
|
2016-03-10 17:43:54 +08:00
|
|
|
|
- 新美大
|
|
|
|
|
- 滴滴
|
2015-06-15 18:18:42 +08:00
|
|
|
|
|
2015-11-04 20:30:50 +08:00
|
|
|
|
> 如果你的公司和产品使用了 Ant Design,欢迎到 [这里](https://github.com/ant-design/ant-design/issues/477) 留言。
|
|
|
|
|
|
2015-06-15 18:18:42 +08:00
|
|
|
|
## 如何贡献
|
|
|
|
|
|
2016-03-22 00:26:33 +08:00
|
|
|
|
在任何形式的参与前,请先阅读 [贡献者文档](https://github.com/ant-design/ant-design/blob/master/.github/CONTRIBUTING.md)。有任何建议或意见您可以 [Pull Request](https://github.com/ant-design/ant-design/pulls),给我们 [报告 Bug](http://dwz.cn/2AF9ao) 或 [提问](https://github.com/ant-design/ant-design/issues)。
|