mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-29 20:08:37 +08:00
753c01ae18
fix antd.notification
26 lines
471 B
Markdown
26 lines
471 B
Markdown
# Flex排序
|
|
|
|
- order: 6
|
|
|
|
通过 Flex 布局的 Order 来改变元素的排序。
|
|
|
|
|
|
---
|
|
|
|
|
|
````jsx
|
|
import { Row, Col } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<div>
|
|
<Row type="flex">
|
|
<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>
|
|
</div>,
|
|
document.getElementById('components-layout-demo-flex-order')
|
|
);
|
|
````
|