@@ -128,15 +128,15 @@ You can use different icons to distinguish different rate components.
...
@@ -128,15 +128,15 @@ You can use different icons to distinguish different rate components.
Read-only Rate is for displaying rating score. Half star is supported.
Read-only Rate is for displaying rating score. Half star is supported.
:::demo Use attribute `disabled` to make the component read-only. Add `show-text` to display the rating score at the right side. Additionally, you can use attribute `text-template` to provide a text template. It must contain `{value}`, and `{value}` will be replaced with the rating score.
:::demo Use attribute `disabled` to make the component read-only. Add `show-score` to display the rating score at the right side. Additionally, you can use attribute `score-template` to provide a score template. It must contain `{value}`, and `{value}` will be replaced with the rating score.
``` html
``` html
<el-rate
<el-rate
v-model="value5"
v-model="value5"
disabled
disabled
show-text
show-score
text-color="#ff9900"
text-color="#ff9900"
text-template="{value} points">
score-template="{value} points">
</el-rate>
</el-rate>
<script>
<script>
...
@@ -166,9 +166,10 @@ Read-only Rate is for displaying rating score. Half star is supported.
...
@@ -166,9 +166,10 @@ Read-only Rate is for displaying rating score. Half star is supported.
| void-icon-class | class name of unselected icons | string | — | el-icon-star-off |
| void-icon-class | class name of unselected icons | string | — | el-icon-star-off |
| disabled-void-icon-class | class name of unselected read-only icons | string | — | el-icon-star-on |
| disabled-void-icon-class | class name of unselected read-only icons | string | — | el-icon-star-on |