From e9528eed93bcac7f596c964bce3ce8395291a187 Mon Sep 17 00:00:00 2001 From: Aresn Date: Thu, 3 May 2018 11:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E6=8C=81=E5=91=BD=E5=90=8D=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=EF=BC=8C=E5=B0=86=20allowClear=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=BA=86=20clearable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/rate/rate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/rate/rate.vue b/src/components/rate/rate.vue index ceacb03b..ad7082ae 100644 --- a/src/components/rate/rate.vue +++ b/src/components/rate/rate.vue @@ -46,7 +46,7 @@ name: { type: String }, - allowClear: { + clearable: { type: Boolean, default: false } @@ -130,7 +130,7 @@ //value++; if (this.isHalf) value -= 0.5; - if(this.allowClear && Math.abs(value - this.currentValue) < 0.01) { + if(this.clearable && Math.abs(value - this.currentValue) < 0.01) { value = 0; }