From d8a81b26d8d867e810e54a40ea0d647bb6af3bee Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sat, 9 Jan 2021 09:23:28 +0800 Subject: [PATCH] fix(Col): compatible with less 4.0 --- src/col/index.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/col/index.less b/src/col/index.less index 35fa2f4f5..ce2f6bd9b 100644 --- a/src/col/index.less +++ b/src/col/index.less @@ -9,11 +9,11 @@ .generate-col(24); .generate-col(@n, @i: 1) when (@i =< @n) { .van-col--@{i} { - width: @i * 100% / 24; + width: (@i * 100% / 24); } .van-col--offset-@{i} { - margin-left: @i * 100% / 24; + margin-left: (@i * 100% / 24); } .generate-col(@n, (@i + 1));