mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Grid): fix square item gutter bug (#3231)
This commit is contained in:
parent
29f1628c00
commit
107782364a
@ -61,7 +61,7 @@ VantComponent({
|
|||||||
styleWrapper.push(`padding-right: ${gutterValue}`);
|
styleWrapper.push(`padding-right: ${gutterValue}`);
|
||||||
|
|
||||||
const index = children.indexOf(this);
|
const index = children.indexOf(this);
|
||||||
if (index >= columnNum) {
|
if (index >= columnNum && !square) {
|
||||||
styleWrapper.push(`margin-top: ${gutterValue}`);
|
styleWrapper.push(`margin-top: ${gutterValue}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user