You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
524 B
31 lines
524 B
9 years ago
|
---
|
||
|
order: 6
|
||
8 years ago
|
title:
|
||
|
zh-CN: Flex 排序
|
||
|
en-US: Flex Order
|
||
9 years ago
|
---
|
||
10 years ago
|
|
||
8 years ago
|
## zh-CN
|
||
|
|
||
10 years ago
|
通过 Flex 布局的 Order 来改变元素的排序。
|
||
10 years ago
|
|
||
8 years ago
|
## en-US
|
||
|
|
||
|
To change the element sort by Flex layout order.
|
||
|
|
||
9 years ago
|
````jsx
|
||
9 years ago
|
import { Row, Col } from 'antd';
|
||
9 years ago
|
|
||
|
ReactDOM.render(
|
||
|
<div>
|
||
|
<Row type="flex">
|
||
9 years ago
|
<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>
|
||
9 years ago
|
</Row>
|
||
|
</div>,
|
||
9 years ago
|
mountNode
|
||
9 years ago
|
);
|
||
10 years ago
|
````
|