Browse Source

fix grid card padding implementation

pull/5392/head
afc163 7 years ago
parent
commit
69775dea68
  1. 1
      components/card/__tests__/__snapshots__/demo.test.js.snap
  2. 2
      components/card/demo/grid-card.md
  3. 1
      components/card/style/index.less

1
components/card/__tests__/__snapshots__/demo.test.js.snap

@ -88,7 +88,6 @@ exports[`renders ./components/card/demo/grid-card.md correctly 1`] = `
</div>
<div
class="ant-card-body"
style="padding:0;"
>
<div
class="ant-card-grid"

2
components/card/demo/grid-card.md

@ -22,7 +22,7 @@ const gridStyle = {
};
ReactDOM.render(
<Card title="卡片标题" noHovering bodyStyle={{ padding: 0 }}>
<Card title="卡片标题" noHovering>
<Card.Grid style={gridStyle}>卡片内容</Card.Grid>
<Card.Grid style={gridStyle}>卡片内容</Card.Grid>
<Card.Grid style={gridStyle}>卡片内容</Card.Grid>

1
components/card/style/index.less

@ -68,6 +68,7 @@
&-contain-grid &-body {
margin: -0.5px;
padding: 0;
}
&-grid {

Loading…
Cancel
Save