Skip to content

Commit

Permalink
Grid新的一行不满columnNum时,如果自定义了itemStyle,用来填充columnNum的item样式会和正常的item不一样…
Browse files Browse the repository at this point in the history
…的问题 (ant-design#583)

* 不满一行时,填充的item样式问题

* update test snapshots
  • Loading branch information
M45ter authored and BANG88 committed Jul 24, 2019
1 parent f42449a commit 23986b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/grid/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ exports[`renders ./components/grid/demo/basic.tsx correctly 1`] = `
"borderRightWidth": 0,
"height": 187.5,
},
Object {},
],
]
}
Expand All @@ -846,6 +847,7 @@ exports[`renders ./components/grid/demo/basic.tsx correctly 1`] = `
"borderRightWidth": 0,
"height": 187.5,
},
Object {},
],
]
}
Expand All @@ -864,6 +866,7 @@ exports[`renders ./components/grid/demo/basic.tsx correctly 1`] = `
"borderRightWidth": 0,
"height": 187.5,
},
Object {},
],
]
}
Expand Down
2 changes: 1 addition & 1 deletion components/grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class Grid extends React.Component<GridProps, any> {
rowArr.push(
<Flex.Item
key={j}
style={[styles.grayBorderBox, flexItemStyle]}
style={[styles.grayBorderBox, flexItemStyle, customItemStyle]}
/>,
);
}
Expand Down

0 comments on commit 23986b8

Please sign in to comment.