mirror of
https://github.com/youzan/vant.git
synced 2026-03-14 02:00:51 +08:00
feat: add tests && fix bugs
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user