2015-06-18 15:26:29 +08:00
|
|
|
|
# 布局排序
|
2015-06-09 21:20:15 +08:00
|
|
|
|
|
2015-10-28 20:55:49 +08:00
|
|
|
|
- order: 3
|
2015-06-09 21:20:15 +08:00
|
|
|
|
|
2015-06-15 17:46:42 +08:00
|
|
|
|
列排序。
|
2015-06-09 21:20:15 +08:00
|
|
|
|
|
|
|
|
|
通过使用 `.col-push-*` 和 `.col-pull-*` 类就可以很容易的改变列(column)的顺序。
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2015-10-27 23:52:17 +08:00
|
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
|
import { Row, Col } from 'antd';
|
2015-10-27 23:52:17 +08:00
|
|
|
|
|
|
|
|
|
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>,
|
|
|
|
|
document.getElementById('components-layout-demo-sort')
|
|
|
|
|
);
|
2015-10-28 20:55:49 +08:00
|
|
|
|
````
|