mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
efd3b35830
* feat: Col support `flex` prop * update snapshot * update doc * row component use flex type by default * revert grid flex layout doc * remove float style * remove doc old FAQ * revert .make-row * col style use flex and max-width * remove useless Col style and imorove base doc for a single Col * update snapshots * fix flex mode pseudo * update snapshots * back to old flex mode demo gray background color * set default col flex => 1 auto * change grid about flex mode description * update snapshots * improve grid introduce and fix with gutter bug * update snapshots * remove version
794 B
794 B
order | title | ||||
---|---|---|---|---|---|
9 |
|
zh-CN
span
pull
push
offset
order
属性可以通过内嵌到 xs
sm
md
lg
xl
xxl
属性中来使用。
其中 xs={6}
相当于 xs={{ span: 6 }}
。
en-US
span
pull
push
offset
order
property can be embedded into xs
sm
md
lg
xl
properties to use, where xs={6}
is equivalent to xs={{span: 6}}
.
import { Row, Col } from 'antd';
ReactDOM.render(
<Row>
<Col xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 2 }}>
Col
</Col>
<Col xs={{ span: 11, offset: 1 }} lg={{ span: 6, offset: 2 }}>
Col
</Col>
<Col xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 2 }}>
Col
</Col>
</Row>,
mountNode,
);