Commit 29a2cb0c60ec2395e1318dc837c1a92b27c9b75e

Authored by 梁灏
1 parent b9ecbd53

update Rate #3853

Showing 1 changed file with 8 additions and 12 deletions   Show diff stats
src/components/rate/rate.vue
... ... @@ -11,18 +11,14 @@
11 11 <span :class="[prefixCls + '-star-content']" type="half"></span>
12 12 </template>
13 13 <template v-else>
14   - <template v-if="character !== ''">
15   - <span :class="[prefixCls + '-star-first']" type="half">{{ character }}</span>
16   - <span :class="[prefixCls + '-star-second']">{{ character }}</span>
17   - </template>
18   - <template v-else>
19   - <span :class="[prefixCls + '-star-first']" type="half">
20   - <i :class="iconClasses" type="half"></i>
21   - </span>
22   - <span :class="[prefixCls + '-star-second']">
23   - <i :class="iconClasses"></i>
24   - </span>
25   - </template>
  14 + <span :class="[prefixCls + '-star-first']" type="half">
  15 + <template v-if="character !== ''">{{ character }}</template>
  16 + <i v-else :class="iconClasses" type="half"></i>
  17 + </span>
  18 + <span :class="[prefixCls + '-star-second']">
  19 + <template v-if="character !== ''">{{ character }}</template>
  20 + <i v-else :class="iconClasses"></i>
  21 + </span>
26 22 </template>
27 23 </div>
28 24 <div :class="[prefixCls + '-text']" v-if="showText" v-show="currentValue > 0">
... ...