fix(Col): compatible with less 4.0

This commit is contained in:
chenjiahan 2021-01-09 09:23:28 +08:00 committed by neverland
parent c2d62eee0c
commit d8a81b26d8

View File

@ -9,11 +9,11 @@
.generate-col(24); .generate-col(24);
.generate-col(@n, @i: 1) when (@i =< @n) { .generate-col(@n, @i: 1) when (@i =< @n) {
.van-col--@{i} { .van-col--@{i} {
width: @i * 100% / 24; width: (@i * 100% / 24);
} }
.van-col--offset-@{i} { .van-col--offset-@{i} {
margin-left: @i * 100% / 24; margin-left: (@i * 100% / 24);
} }
.generate-col(@n, (@i + 1)); .generate-col(@n, (@i + 1));