2016-03-31 09:40:55 +08:00
|
|
|
|
---
|
|
|
|
|
order: 3
|
2016-11-05 15:46:50 +08:00
|
|
|
|
title:
|
|
|
|
|
zh-CN: 栅格排序
|
|
|
|
|
en-US: Grid sort
|
2016-03-31 09:40:55 +08:00
|
|
|
|
---
|
2015-06-09 21:20:15 +08:00
|
|
|
|
|
2016-08-08 10:40:02 +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
|
|
|
|
|
2016-08-08 10:40:02 +08:00
|
|
|
|
## en-US
|
|
|
|
|
|
2020-11-08 15:04:02 +08:00
|
|
|
|
By using `push` and `pull` class you can easily change column order.
|
2016-08-08 10:40:02 +08:00
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
|
```tsx
|
2022-05-23 14:37:16 +08:00
|
|
|
|
import { Col, Row } from 'antd';
|
2022-05-19 09:46:26 +08:00
|
|
|
|
import React from 'react';
|
2015-10-27 23:52:17 +08:00
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
|
const App: React.FC = () => (
|
2020-02-26 21:00:43 +08:00
|
|
|
|
<Row>
|
|
|
|
|
<Col span={18} push={6}>
|
|
|
|
|
col-18 col-push-6
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={6} pull={18}>
|
|
|
|
|
col-6 col-pull-18
|
|
|
|
|
</Col>
|
2022-04-03 23:27:45 +08:00
|
|
|
|
</Row>
|
2015-10-27 23:52:17 +08:00
|
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
|
```
|