mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
update introduce
This commit is contained in:
parent
06dc2b9041
commit
6c3fcea5a6
@ -35,11 +35,19 @@
|
|||||||
|
|
||||||
## 示例
|
## 示例
|
||||||
|
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import { Datepicker } from 'antd';
|
import { Datepicker } from 'antd';
|
||||||
ReactDOM.render(<Datepicker />, mountNode);
|
ReactDOM.render(<Datepicker />, mountNode);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
或者按需加载:
|
||||||
|
|
||||||
|
```jsx
|
||||||
|
import Datepicker from 'antd/lib/datepicker';
|
||||||
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user