Layout: iteration starts from 0 (#10347)

pull/10351/head
杨奕 2018-03-25 13:00:38 +08:00 committed by GitHub
parent 430c149d88
commit e9ea178ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@
display: none;
}
@for $i from 1 through 24 {
@for $i from 0 through 24 {
.el-col-#{$i} {
width: (1 / 24 * $i * 100) * 1%;
}
@ -34,7 +34,7 @@
.el-col-xs-0 {
display: none;
}
@for $i from 1 through 24 {
@for $i from 0 through 24 {
.el-col-xs-#{$i} {
width: (1 / 24 * $i * 100) * 1%;
}
@ -59,7 +59,7 @@
.el-col-sm-0 {
display: none;
}
@for $i from 1 through 24 {
@for $i from 0 through 24 {
.el-col-sm-#{$i} {
width: (1 / 24 * $i * 100) * 1%;
}
@ -84,7 +84,7 @@
.el-col-md-0 {
display: none;
}
@for $i from 1 through 24 {
@for $i from 0 through 24 {
.el-col-md-#{$i} {
width: (1 / 24 * $i * 100) * 1%;
}
@ -109,7 +109,7 @@
.el-col-lg-0 {
display: none;
}
@for $i from 1 through 24 {
@for $i from 0 through 24 {
.el-col-lg-#{$i} {
width: (1 / 24 * $i * 100) * 1%;
}
@ -134,7 +134,7 @@
.el-col-xl-0 {
display: none;
}
@for $i from 1 through 24 {
@for $i from 0 through 24 {
.el-col-xl-#{$i} {
width: (1 / 24 * $i * 100) * 1%;
}