fix: Col default width (#19983)

* fix: Col default width

* update snapshots
This commit is contained in:
骗你是小猫咪 2019-11-29 22:02:35 +08:00 committed by 二货机器人
parent 43574443d5
commit 65312870d4
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ exports[`renders ./components/grid/demo/basic.md correctly 1`] = `
class="ant-row" class="ant-row"
> >
<div <div
class="ant-col" class="ant-col ant-col-24"
> >
col col
</div> </div>

View File

@ -23,7 +23,7 @@ import { Row, Col } from 'antd';
ReactDOM.render( ReactDOM.render(
<div> <div>
<Row> <Row>
<Col>col</Col> <Col span={24}>col</Col>
</Row> </Row>
<Row> <Row>
<Col span={12}>col-12</Col> <Col span={12}>col-12</Col>

View File

@ -55,7 +55,7 @@
.@{ant-prefix}-col { .@{ant-prefix}-col {
position: relative; position: relative;
flex: 1 auto; flex: 0 1 auto;
max-width: 100%; max-width: 100%;
// Prevent columns from collapsing when empty // Prevent columns from collapsing when empty
min-height: 1px; min-height: 1px;