补充 Col & Row 测试用例 (#16)

* layout test

* fix row

* update layout test
This commit is contained in:
wny
2017-04-26 10:07:09 +08:00
committed by 张敏
parent fab9682e9a
commit b98a624960
7 changed files with 2483 additions and 7 deletions
+2 -1
View File
@@ -25,7 +25,8 @@
},
computed: {
gutter() {
return Number(this.$parent.gutter);
if (!this.$parent) return 0;
return Number(this.$parent.gutter) || 0;
},
style() {
const padding = `${this.gutter / 2}px`;
@@ -31,7 +31,7 @@ export default {
},
format: {
type: String,
default: 'yyyy.mm.dd hh时 mm分'
default: 'YYYY.MM.DD HH时 mm分'
},
visibleItemCount: {
type: Number,
+4 -1
View File
@@ -14,7 +14,10 @@
type: String,
default: 'van'
},
gutter: [Number, String]
gutter: {
type: [Number, String],
default: 0
}
},
computed: {
style() {
+6 -4
View File
@@ -1,3 +1,5 @@
@import './common/var.css';
@-webkit-keyframes loading {
from {
-webkit-transform: rotate(0deg);
@@ -24,7 +26,7 @@
@component-namespace van {
@b loading {
line-height: 0;
font-size: 0;
@@ -38,12 +40,12 @@
width: 30px;
height: 30px;
}
@e spinner {
@e spinner {
display: inline-block;
height: 100%;
width: 100%;
-webkit-animation: loading 0.8s linear;
-webkit-animation-iteration-count: infinite;
animation: loading 0.8s linear;
File diff suppressed because it is too large Load Diff