Skip to content

Commit

Permalink
Update character.md (#3332)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxzlwz authored Oct 25, 2024
1 parent 29a415e commit 07393f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-vue/components/rate/__demo__/character.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You can replace the stars with other characters, such as emoticons, letters, num
```vue
<template>
<a-rate :default-value="2">
<template #character="index">
<icon-check v-if="index<3"/>
<template #character="{ index }">
<icon-check v-if="index < 3"/>
<icon-close v-else/>
</template>
</a-rate>
Expand Down

0 comments on commit 07393f3

Please sign in to comment.