mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
21 lines
301 B
Markdown
21 lines
301 B
Markdown
|
# 基本
|
||
|
|
||
|
- order: 0
|
||
|
|
||
|
最简单的用法。
|
||
|
|
||
|
---
|
||
|
|
||
|
````jsx
|
||
|
var Carousel = antd.Carousel;
|
||
|
|
||
|
React.render(
|
||
|
<Carousel>
|
||
|
<div><h3>1</h3></div>
|
||
|
<div><h3>2</h3></div>
|
||
|
<div><h3>3</h3></div>
|
||
|
<div><h3>4</h3></div>
|
||
|
</Carousel>
|
||
|
, document.getElementById('components-carousel-demo-basic'));
|
||
|
````
|