mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix: set marginTop when has gutter (#2047)
This commit is contained in:
parent
d249bdcce9
commit
12862bebbc
@ -41,11 +41,11 @@ VantComponent({
|
||||
|
||||
if (gutter) {
|
||||
styleWrapper.push(`padding-right: ${gutter}px`);
|
||||
}
|
||||
|
||||
const index = children.indexOf(this);
|
||||
if (index >= columnNum) {
|
||||
styleWrapper.push(`margin-top: ${gutter}px`);
|
||||
const index = children.indexOf(this);
|
||||
if (index >= columnNum) {
|
||||
styleWrapper.push(`margin-top: ${gutter}px`);
|
||||
}
|
||||
}
|
||||
|
||||
this.setData({
|
||||
|
Loading…
x
Reference in New Issue
Block a user