@@ -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,
|
||||
|
||||
@@ -14,7 +14,10 @@
|
||||
type: String,
|
||||
default: 'van'
|
||||
},
|
||||
gutter: [Number, String]
|
||||
gutter: {
|
||||
type: [Number, String],
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
style() {
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user