From 29a2cb0c60ec2395e1318dc837c1a92b27c9b75e Mon Sep 17 00:00:00 2001 From: 梁灏 <admin@aresn.com> Date: Thu, 21 Jun 2018 16:08:00 +0800 Subject: [PATCH] update Rate #3853 --- src/components/rate/rate.vue | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/rate/rate.vue b/src/components/rate/rate.vue index e6baf46..1ad744c 100644 --- a/src/components/rate/rate.vue +++ b/src/components/rate/rate.vue @@ -11,18 +11,14 @@ <span :class="[prefixCls + '-star-content']" type="half"></span> </template> <template v-else> - <template v-if="character !== ''"> - <span :class="[prefixCls + '-star-first']" type="half">{{ character }}</span> - <span :class="[prefixCls + '-star-second']">{{ character }}</span> - </template> - <template v-else> - <span :class="[prefixCls + '-star-first']" type="half"> - <i :class="iconClasses" type="half"></i> - </span> - <span :class="[prefixCls + '-star-second']"> - <i :class="iconClasses"></i> - </span> - </template> + <span :class="[prefixCls + '-star-first']" type="half"> + <template v-if="character !== ''">{{ character }}</template> + <i v-else :class="iconClasses" type="half"></i> + </span> + <span :class="[prefixCls + '-star-second']"> + <template v-if="character !== ''">{{ character }}</template> + <i v-else :class="iconClasses"></i> + </span> </template> </div> <div :class="[prefixCls + '-text']" v-if="showText" v-show="currentValue > 0"> -- libgit2 0.21.4