2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 6
|
2019-05-07 14:57:32 +08:00
|
|
|
title:
|
2019-11-20 11:13:24 +08:00
|
|
|
zh-CN: 排序
|
|
|
|
en-US: Order
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-06-09 22:19:35 +08:00
|
|
|
|
2016-08-08 10:40:02 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2019-11-20 11:13:24 +08:00
|
|
|
通过 Order 来改变元素的排序。
|
2015-06-09 22:19:35 +08:00
|
|
|
|
2016-08-08 10:40:02 +08:00
|
|
|
## en-US
|
|
|
|
|
2019-11-20 11:13:24 +08:00
|
|
|
To change the element sort by order.
|
2016-08-08 10:40:02 +08:00
|
|
|
|
2019-05-07 14:57:32 +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(
|
2020-02-26 21:00:43 +08:00
|
|
|
<Row>
|
|
|
|
<Col span={6} order={4}>
|
|
|
|
1 col-order-4
|
|
|
|
</Col>
|
|
|
|
<Col span={6} order={3}>
|
|
|
|
2 col-order-3
|
|
|
|
</Col>
|
|
|
|
<Col span={6} order={2}>
|
|
|
|
3 col-order-2
|
|
|
|
</Col>
|
|
|
|
<Col span={6} order={1}>
|
|
|
|
4 col-order-1
|
|
|
|
</Col>
|
|
|
|
</Row>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2015-10-27 23:52:17 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|
2019-11-20 11:13:24 +08:00
|
|
|
|
|
|
|
```css
|
|
|
|
#components-grid-demo-flex-order [class~='ant-row'] {
|
2019-12-23 14:49:45 +08:00
|
|
|
background: rgba(128, 128, 128, 0.08);
|
2019-11-20 11:13:24 +08:00
|
|
|
}
|
|
|
|
```
|