Skip to content

Commit

Permalink
fix(Grid): fix square item gutter bug (#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lindysen authored Jun 3, 2020
1 parent 29f1628 commit 1077823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grid-item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ VantComponent({
styleWrapper.push(`padding-right: ${gutterValue}`);

const index = children.indexOf(this);
if (index >= columnNum) {
if (index >= columnNum && !square) {
styleWrapper.push(`margin-top: ${gutterValue}`);
}
}
Expand Down

0 comments on commit 1077823

Please sign in to comment.