This commit is contained in:
梁灏 2018-06-21 16:08:00 +08:00
parent b9ecbd5384
commit 29a2cb0c60

View file

@ -11,18 +11,14 @@
<span :class="[prefixCls + '-star-content']" type="half"></span> <span :class="[prefixCls + '-star-content']" type="half"></span>
</template> </template>
<template v-else> <template v-else>
<template v-if="character !== ''"> <span :class="[prefixCls + '-star-first']" type="half">
<span :class="[prefixCls + '-star-first']" type="half">{{ character }}</span> <template v-if="character !== ''">{{ character }}</template>
<span :class="[prefixCls + '-star-second']">{{ character }}</span> <i v-else :class="iconClasses" type="half"></i>
</template> </span>
<template v-else> <span :class="[prefixCls + '-star-second']">
<span :class="[prefixCls + '-star-first']" type="half"> <template v-if="character !== ''">{{ character }}</template>
<i :class="iconClasses" type="half"></i> <i v-else :class="iconClasses"></i>
</span> </span>
<span :class="[prefixCls + '-star-second']">
<i :class="iconClasses"></i>
</span>
</template>
</template> </template>
</div> </div>
<div :class="[prefixCls + '-text']" v-if="showText" v-show="currentValue > 0"> <div :class="[prefixCls + '-text']" v-if="showText" v-show="currentValue > 0">