feat: add tests && fix bugs

This commit is contained in:
jiangruowei
2017-04-06 15:11:29 +08:00
parent a85c3c2695
commit a32142c723
9 changed files with 216 additions and 46 deletions

View File

@@ -33,7 +33,7 @@ export default {
percentage: {
type: Number,
required: true,
validate(value) {
validator(value) {
return value <= 100 && value >= 0;
}
},
@@ -55,9 +55,6 @@ export default {
},
computed: {
currentPivotText() {
return this.pivotText ? this.pivotText : this.percentage + '%';
},
componentColor() {
return this.inactive ? INACTIVE_COLOR : this.color;
},