Commit e9528eed93bcac7f596c964bce3ce8395291a187

Authored by Aresn
Committed by GitHub
1 parent 52258982

保持命名统一,将 allowClear 修改为了 clearable

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/components/rate/rate.vue
... ... @@ -46,7 +46,7 @@
46 46 name: {
47 47 type: String
48 48 },
49   - allowClear: {
  49 + clearable: {
50 50 type: Boolean,
51 51 default: false
52 52 }
... ... @@ -130,7 +130,7 @@
130 130 //value++;
131 131 if (this.isHalf) value -= 0.5;
132 132  
133   - if(this.allowClear && Math.abs(value - this.currentValue) < 0.01) {
  133 + if(this.clearable && Math.abs(value - this.currentValue) < 0.01) {
134 134 value = 0;
135 135 }
136 136  
... ...