mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
23 lines
372 B
Markdown
23 lines
372 B
Markdown
---
|
||
order: 3
|
||
title: 布局排序
|
||
---
|
||
|
||
列排序。
|
||
|
||
通过使用 `push` 和 `pull` 类就可以很容易的改变列(column)的顺序。
|
||
|
||
````jsx
|
||
import { Row, Col } from 'antd';
|
||
|
||
ReactDOM.render(
|
||
<div>
|
||
<Row>
|
||
<Col span={18} push={6}>.col-18 .col-push-6</Col>
|
||
<Col span={6} pull={18}>.col-6 .col-pull-18</Col>
|
||
</Row>
|
||
</div>,
|
||
mountNode
|
||
);
|
||
````
|