Browse Source

update document

pull/459/head
afc163 9 years ago
parent
commit
1b8a30ca1f
  1. 24
      README-zh_CN.md
  2. 22
      README.md
  3. 4
      docs/introduce.md

24
README-zh_CN.md

@ -32,24 +32,24 @@ npm install antd@beta
## 示例 ## 示例
### 使用全部组件 - 使用全部组件
```jsx ```jsx
import { Datepicker } from 'antd'; import { Datepicker } from 'antd';
ReactDOM.render(<Datepicker />, mountNode); ReactDOM.render(<Datepicker />, mountNode);
``` ```
### 按需使用 - 按需使用
```jsx ```jsx
import 'antd/lib/index.css'; // 只需在页面入口模块引用一次 import 'antd/lib/index.css'; // 只需在页面入口模块引用一次
import Datepicker from 'antd/lib/datepicker'; import Datepicker from 'antd/lib/datepicker';
ReactDOM.render(<Datepicker />, mountNode); ReactDOM.render(<Datepicker />, mountNode);
``` ```
## 浏览器支持 ## 浏览器支持
现代浏览器和IE8 及以上。 现代浏览器和 IE8 及以上。
## 链接 ## 链接

22
README.md

@ -27,20 +27,20 @@ npm install antd@beta
## Usage example ## Usage example
### Use all components - Use all components
```jsx ```jsx
import { Datepicker } from 'antd'; import { Datepicker } from 'antd';
ReactDOM.render(<Datepicker />, mountNode); ReactDOM.render(<Datepicker />, mountNode);
``` ```
### Use on demand - Use on demand
```jsx ```jsx
import 'antd/lib/index.css'; // only need to import once in entry module import 'antd/lib/index.css'; // only need to import once in entry module
import Datepicker from 'antd/lib/datepicker'; import Datepicker from 'antd/lib/datepicker';
ReactDOM.render(<Datepicker />, mountNode); ReactDOM.render(<Datepicker />, mountNode);
``` ```
## Browser Support ## Browser Support

4
docs/introduce.md

@ -45,6 +45,10 @@ ReactDOM.render(<Datepicker />, mountNode);
- 稳定版:[![npm package](http://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd) - 稳定版:[![npm package](http://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd)
- 开发版:[![](https://cnpmjs.org/badge/v/antd.svg?&tag=beta&subject=npm)](https://www.npmjs.org/package/antd) - 开发版:[![](https://cnpmjs.org/badge/v/antd.svg?&tag=beta&subject=npm)](https://www.npmjs.org/package/antd)
## 浏览器支持
现代浏览器和 IE8 及以上。
## 链接 ## 链接
- [首页](http://ant.design/) - [首页](http://ant.design/)

Loading…
Cancel
Save