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) {
|
if (gutter) {
|
||||||
styleWrapper.push(`padding-right: ${gutter}px`);
|
styleWrapper.push(`padding-right: ${gutter}px`);
|
||||||
}
|
|
||||||
|
|
||||||
const index = children.indexOf(this);
|
const index = children.indexOf(this);
|
||||||
if (index >= columnNum) {
|
if (index >= columnNum) {
|
||||||
styleWrapper.push(`margin-top: ${gutter}px`);
|
styleWrapper.push(`margin-top: ${gutter}px`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setData({
|
this.setData({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user