Commit 9212149ed6c7c2f19f6e6cf8b188cbc8f5f486b3

Authored by 梁灏
1 parent 7479854b

update Rate

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/rate/rate.vue
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <span :class="[prefixCls + '-star-content']" type="half"></span> 8 <span :class="[prefixCls + '-star-content']" type="half"></span>
9 </div> 9 </div>
10 <div :class="[prefixCls + '-text']" v-if="showText" v-show="currentValue > 0"> 10 <div :class="[prefixCls + '-text']" v-if="showText" v-show="currentValue > 0">
11 - <slot>{{ currentValue }} <template v-if="currentValue <= 1">{{ t('i.rate.star') }}</template><template v-else>{{ t('i.rate.stars') }}</template></slot> 11 + <slot><span>{{ currentValue }}</span> <span v-if="currentValue <= 1">{{ t('i.rate.star') }}</span><span v-else>{{ t('i.rate.stars') }}</span></slot>
12 </div> 12 </div>
13 </div> 13 </div>
14 </template> 14 </template>