From f0dc12d22539dfb0b114c3945066f9a840dc028a Mon Sep 17 00:00:00 2001 From: anlyyao Date: Thu, 16 Jun 2022 15:00:33 +0800 Subject: [PATCH 1/3] fix(rate): support gap --- src/rate/demos/allow-half.vue | 15 ++-- src/rate/demos/base.vue | 21 +++--- src/rate/demos/color.vue | 15 ++-- src/rate/demos/count.vue | 15 ++-- src/rate/demos/disabled.vue | 15 ++-- src/rate/demos/icon.vue | 20 +++--- src/rate/demos/mobile.vue | 126 ++++++++++++++-------------------- src/rate/demos/size.vue | 15 ++-- src/rate/demos/text.vue | 26 ++----- src/rate/rate.vue | 20 ++++-- 10 files changed, 114 insertions(+), 174 deletions(-) diff --git a/src/rate/demos/allow-half.vue b/src/rate/demos/allow-half.vue index 1e1f4e4f6..8e101fcad 100644 --- a/src/rate/demos/allow-half.vue +++ b/src/rate/demos/allow-half.vue @@ -1,15 +1,10 @@ - diff --git a/src/rate/demos/base.vue b/src/rate/demos/base.vue index 041ef7f81..62a6c288a 100644 --- a/src/rate/demos/base.vue +++ b/src/rate/demos/base.vue @@ -1,18 +1,13 @@ - diff --git a/src/rate/demos/color.vue b/src/rate/demos/color.vue index 16daea03c..1caef83ba 100644 --- a/src/rate/demos/color.vue +++ b/src/rate/demos/color.vue @@ -1,15 +1,10 @@ - diff --git a/src/rate/demos/count.vue b/src/rate/demos/count.vue index 8431ab583..64e246d2f 100644 --- a/src/rate/demos/count.vue +++ b/src/rate/demos/count.vue @@ -1,15 +1,10 @@ - diff --git a/src/rate/demos/disabled.vue b/src/rate/demos/disabled.vue index ee4f5abcb..a67017087 100644 --- a/src/rate/demos/disabled.vue +++ b/src/rate/demos/disabled.vue @@ -1,15 +1,10 @@ - diff --git a/src/rate/demos/icon.vue b/src/rate/demos/icon.vue index 977022131..1b13adbc3 100644 --- a/src/rate/demos/icon.vue +++ b/src/rate/demos/icon.vue @@ -1,19 +1,17 @@ - diff --git a/src/rate/demos/mobile.vue b/src/rate/demos/mobile.vue index dcf3cdd38..800278af6 100644 --- a/src/rate/demos/mobile.vue +++ b/src/rate/demos/mobile.vue @@ -2,116 +2,93 @@

Rate 按钮

评分组件,对内容进行快速评级操作,或内容评价的等级展示,目前常用为五星实心评价

- +
请点击评分
- -
-
-
请点击评分
- +
+
+
请点击评分
- +
+
+
自定义数量
- +
+
+
-
半星评分
- +
半星评价
+
-
+
请点击评分
- +
-
+
请点击评分
- +
请点击评分
- +
- - - - +
-
请点击评分
- -
-
-
请点击评分
- +
仅展示
+
- -
-
请点击评分
- + +
+
空心评分
+
-
请点击评分
- +
实心评分
+
- -
-
请点击评分
- + +
+
评分20
+
-
请点击评分
- +
评分16
+
- -
-
半星评分
- -
+
-
半星评分
- +
评分20
+
- diff --git a/src/rate/demos/size.vue b/src/rate/demos/size.vue index b591af474..8807fd291 100644 --- a/src/rate/demos/size.vue +++ b/src/rate/demos/size.vue @@ -1,15 +1,10 @@ - diff --git a/src/rate/demos/text.vue b/src/rate/demos/text.vue index f52835117..262ee9709 100644 --- a/src/rate/demos/text.vue +++ b/src/rate/demos/text.vue @@ -1,25 +1,11 @@ - diff --git a/src/rate/rate.vue b/src/rate/rate.vue index 622471781..ea469654b 100644 --- a/src/rate/rate.vue +++ b/src/rate/rate.vue @@ -1,20 +1,28 @@