2015-08-24 16:03:21 +08:00
|
|
|
# Ant Design of React
|
2015-06-04 17:56:09 +08:00
|
|
|
|
2015-08-24 15:57:00 +08:00
|
|
|
- category: 0
|
2015-06-04 17:56:09 +08:00
|
|
|
- order: 0
|
|
|
|
|
|
|
|
---
|
|
|
|
|
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>
|
|
|
|
<style>
|
|
|
|
.pic-plus > * {
|
|
|
|
display: inline-block!important;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
.pic-plus span {
|
|
|
|
font-size: 30px;
|
|
|
|
color: #aaa;
|
|
|
|
margin: 0 20px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2015-06-04 17:56:09 +08:00
|
|
|
|
|
|
|
## 特性
|
|
|
|
|
2015-08-22 19:13:06 +08:00
|
|
|
- Designed as Ant Design.
|
2015-06-15 18:16:21 +08:00
|
|
|
- 丰富实用的 React UI 组件。
|
2015-06-15 18:18:42 +08:00
|
|
|
- 基于 React 的组件化开发模式。
|
2015-06-15 18:16:21 +08:00
|
|
|
- 背靠 npm 生态圈。
|
2015-07-08 20:08:19 +08:00
|
|
|
- 基于 webpack 的调试构建方案,支持 ES6。
|
|
|
|
|
2015-07-15 18:17:05 +08:00
|
|
|
## 示例
|
2015-07-03 18:06:47 +08:00
|
|
|
|
|
|
|
```jsx
|
|
|
|
var antd = require('antd');
|
|
|
|
var Datepicker = antd.Datepicker;
|
|
|
|
|
|
|
|
React.render(<Datepicker />, mountNode);
|
|
|
|
```
|
2015-06-15 18:16:21 +08:00
|
|
|
|
2015-08-22 21:08:18 +08:00
|
|
|
## 版本
|
|
|
|
|
|
|
|
- 稳定版:<span class="versions" id="stable-version"></span>
|
|
|
|
- 开发版:<span class="versions" id="latest-version"></span>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.versions {
|
|
|
|
font-weight: bold;
|
|
|
|
color: #C05B4D;
|
|
|
|
font-family: Consolas;
|
|
|
|
margin-left: 0.3em;
|
|
|
|
background: #FFF1E7;
|
|
|
|
padding: 2px 5px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$('#latest-version').html(antdVersion.latest);
|
|
|
|
$('#latest-links a').each(function(i, item) {
|
|
|
|
$(item).attr('href', $(item).attr('href').replace('dist/antd', 'dist/antd-' + antdVersion.latest));
|
|
|
|
});
|
|
|
|
|
|
|
|
if (antdVersion.stable) {
|
|
|
|
$('#stable-version').html(antdVersion.stable);
|
|
|
|
$('#stable-link').attr('href', 'https://github.com/ant-design/ant-design/releases/tag/' + antdVersion.stable);
|
|
|
|
} else {
|
|
|
|
$('#stable-version').html('暂无');
|
|
|
|
$('#stable-link').hide();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
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/)
|
|
|
|
- [文档](http://ant.design/docs/introduce)
|
|
|
|
- [组件](http://ant.design/components/)
|
2015-08-20 15:04:34 +08:00
|
|
|
- [构建调试 antd-bin](https://github.com/ant-design/antd-bin)
|
2015-07-17 00:28:15 +08:00
|
|
|
- [开发计划](https://github.com/ant-design/ant-design/issues/9)
|
2015-06-15 18:16:21 +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-06-15 18:18:42 +08:00
|
|
|
|
2015-07-03 18:06:47 +08:00
|
|
|
## 谁在使用
|
|
|
|
|
|
|
|
- 蚂蚁金服
|
2015-06-15 18:18:42 +08:00
|
|
|
|
|
|
|
## 如何贡献
|
|
|
|
|
|
|
|
我们欢迎任何形式的贡献,有任何建议或意见您可以进行 [Pull Request](https://github.com/ant-design/ant-design/pulls),或者给我们[提问](https://github.com/ant-design/ant-design/issues)。
|