[improvement] props default value (#2183)

This commit is contained in:
neverland
2018-11-29 22:20:42 +08:00
committed by GitHub
parent ad5121286b
commit 916dbd9927
31 changed files with 83 additions and 167 deletions
-1
View File
@@ -12,7 +12,6 @@
text-align: center;
box-sizing: border-box;
background-color: @white;
transition: color .3s;
span {
display: block;
+5 -5
View File
@@ -73,8 +73,12 @@ export default create({
color: String,
sticky: Boolean,
animated: Boolean,
lineWidth: Number,
offsetTop: Number,
swipeable: Boolean,
lineWidth: {
type: Number,
default: null
},
active: {
type: [Number, String],
default: 0
@@ -90,10 +94,6 @@ export default create({
swipeThreshold: {
type: Number,
default: 4
},
offsetTop: {
type: Number,
default: 0
}
},