fix(Col): compatible with less 4.0

This commit is contained in:
chenjiahan 2021-01-09 10:08:33 +08:00
parent f633f2bd03
commit c670f7f426

View File

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