diff --git a/src/components/rate/rate.vue b/src/components/rate/rate.vue index abd74ba..a8773d6 100644 --- a/src/components/rate/rate.vue +++ b/src/components/rate/rate.vue @@ -8,7 +8,7 @@ <span :class="[prefixCls + '-star-content']" type="half"></span> </div> <div :class="[prefixCls + '-text']" v-if="showText" v-show="currentValue > 0"> - <slot>{{ currentValue }} <template v-if="currentValue <= 1">{{ t('i.rate.star') }}</template><template v-else>{{ t('i.rate.stars') }}</template></slot> + <slot><span>{{ currentValue }}</span> <span v-if="currentValue <= 1">{{ t('i.rate.star') }}</span><span v-else>{{ t('i.rate.stars') }}</span></slot> </div> </div> </template> -- libgit2 0.21.4