feat: layout component

This commit is contained in:
chenjiahan
2020-07-05 16:00:20 +08:00
parent 4a25ebf9ab
commit e671e22ea5
12 changed files with 677 additions and 31 deletions
+20
View File
@@ -0,0 +1,20 @@
@import '../style/var';
.van-col {
float: left;
box-sizing: border-box;
min-height: 1px;
}
.generate-col(24);
.generate-col(@n, @i: 1) when (@i =< @n) {
.van-col--@{i} {
width: @i * 100% / 24;
}
.van-col--offset-@{i} {
margin-left: @i * 100% / 24;
}
.generate-col(@n, (@i + 1));
}