ant-design/docs/download.md

70 lines
1.5 KiB
Markdown
Raw Normal View History

2015-07-03 18:06:47 +08:00
# 下载
2015-05-09 18:52:17 +08:00
2015-07-05 15:43:07 +08:00
- category: 入门
2015-07-03 18:06:47 +08:00
- order: 2
2015-05-09 18:52:17 +08:00
2015-06-04 17:56:09 +08:00
---
2015-05-09 18:52:17 +08:00
2015-07-04 16:20:50 +08:00
## 直接下载
2015-07-05 23:38:13 +08:00
- **开发版** <span class="versions" id="latest-version">1.0.2</span>
2015-07-04 16:20:50 +08:00
2015-07-05 23:38:13 +08:00
<ul id="latest-links">
<li>
<a href="http://ant.design/dist/antd.js">antd.js</a>
</li>
<li>
<a href="http://ant.design/dist/antd.css">antd.css</a>
</li>
</ul>
2015-07-04 16:20:50 +08:00
2015-07-05 23:38:13 +08:00
- **稳定版** <span class="versions" id="stable-version">1.0.0</span>
<ul id="stable-links">
<li>
<a href="http://ant.design/dist/antd.js">antd.js</a>
</li>
<li>
<a href="http://ant.design/dist/antd.js">antd.css</a>
</li>
</ul>
- **历史版本**https://github.com/ant-design/ant-design/releases
2015-07-04 16:20:50 +08:00
## npm
2015-07-04 16:31:48 +08:00
可以通过 npm 直接安装到本地,使用 `require``import` 进行引用。
2015-07-04 16:20:50 +08:00
```bash
$ npm install antd --save
```
2015-07-05 23:38:13 +08:00
<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-links a').each(function(i, item) {
$(item).attr('href', $(item).attr('href').replace('dist/antd', 'dist/antd' + antdVersion.stable));
});
} else {
$('#stable-version').html('暂无');
$('#stable-links').hide();
}
</script>