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.
 
 

643 B

order title
7 [{zh-CN Flex 填充} {en-US Flex Stretch}]

zh-CN

Col 提供 flex 属性以支持填充。

en-US

Col provides flex prop to support fill rest.

import { Row, Col } from 'antd';

ReactDOM.render(
  <div>
    <p>Percentage columns</p>
    <Row>
      <Col flex={2}>2 / 5</Col>
      <Col flex={3}>3 / 5</Col>
    </Row>
    <p>Fill rest</p>
    <Row>
      <Col flex="100px">100px</Col>
      <Col flex="auto">Fill Rest</Col>
    </Row>
    <p>Raw flex style</p>
    <Row>
      <Col flex="1 1 200px">1 1 200px</Col>
      <Col flex="0 1 300px">0 1 300px</Col>
    </Row>
  </div>,
  mountNode,
);