ant-design/components/grid/demo/sort.md
2022-05-23 14:37:16 +08:00

35 lines
531 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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.
```tsx
import { Col, Row } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Row>
<Col span={18} push={6}>
col-18 col-push-6
</Col>
<Col span={6} pull={18}>
col-6 col-pull-18
</Col>
</Row>
);
export default App;
```