Skip to content

Commit

Permalink
fix(rate): half click bug
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Jul 9, 2021
1 parent ee8d1f2 commit 342af01
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/packages/__VUE/rate/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
:size="iconSize"
:name="checkedIcon"
/>
<nut-icon
v-else-if="allowHalf && modelValue + 1 < n"
class="
nut-rate-item__icon
nut-rate-item__icon--disabled
nut-rate-item__icon--half
"
@click="onClick(2, n)"
:color="voidColor"
:size="iconSize"
:name="uncheckedIcon"
/>
</view>
</view>
</template>
Expand Down
11 changes: 11 additions & 0 deletions src/packages/__VUE/rate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
:size="iconSize"
:name="checkedIcon"
/>
<nut-icon
v-else-if="allowHalf && modelValue + 1 < n"
class="
nut-rate-item__icon
nut-rate-item__icon--disabled
nut-rate-item__icon--half
"
:color="voidColor"
:size="iconSize"
:name="uncheckedIcon"
/>
</view>
</view>
</template>
Expand Down

0 comments on commit 342af01

Please sign in to comment.