mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
32 lines
476 B
Markdown
32 lines
476 B
Markdown
---
|
||
order: 3
|
||
title:
|
||
zh-CN: 栅格排序
|
||
en-US: Grid sort
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
列排序。
|
||
|
||
通过使用 `push` 和 `pull` 类就可以很容易的改变列(column)的顺序。
|
||
|
||
## en-US
|
||
|
||
By using `push` and `pull` class you can easily change column order.
|
||
|
||
```jsx
|
||
import { Row, Col } from 'antd';
|
||
|
||
export default () => (
|
||
<Row>
|
||
<Col span={18} push={6}>
|
||
col-18 col-push-6
|
||
</Col>
|
||
<Col span={6} pull={18}>
|
||
col-6 col-pull-18
|
||
</Col>
|
||
</Row>
|
||
);
|
||
```
|