ant-design/components/layout/demo/sort.md

31 lines
509 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 3
title:
zh-CN: 布局排序
en-US: Layout sort
2016-03-31 09:40:55 +08:00
---
2015-06-09 21:20:15 +08:00
## zh-CN
2015-06-15 17:46:42 +08:00
列排序。
2015-06-09 21:20:15 +08:00
2016-02-25 14:15:37 +08:00
通过使用 `push``pull` 类就可以很容易的改变列column的顺序。
2015-06-09 21:20:15 +08:00
## en-US
By using `push` and` pull` class you can easily change column order.
2015-10-27 23:52:17 +08:00
````jsx
import { Row, Col } from 'antd';
2015-10-27 23:52:17 +08:00
ReactDOM.render(
<div>
<Row>
2016-06-06 11:40:54 +08:00
<Col span={18} push={6}>.ant-col-18 .ant-col-push-6</Col>
<Col span={6} pull={18}>.ant-col-6 .ant-col-pull-18</Col>
2015-10-27 23:52:17 +08:00
</Row>
</div>,
mountNode
2015-10-27 23:52:17 +08:00
);
````