# Rate 评分

## 何时使用
这里需要一段文本来描述此组件何时使用


### 基本使用

@[demo](demo/basic.vue)


### 禁用
使用`disabled` 可以禁用


@[demo](demo/disabled.vue)



### 允许半选
使用`allow-half` 可以半选

@[demo](demo/half.vue)


### 文本
使用`show-text` 可以显示文本

使用`show-score` 可以显示文本


@[demo](demo/text.vue)



### 可以清除
使用`clearable` 再次点击相同的可以清除


@[demo](demo/clear.vue)


### 自定义

@[demo](demo/slot.vue)



### props
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------- |---------- |-------------  |-------- |
| max | 最大分值 | number | — | 5 |
| disabled | 是否为只读 | boolean | — | false |
| allow-half | 是否允许半选 | boolean | — | false |
| low-threshold | 低分和中等分数的界限值，值本身被划分在低分中 | number | — | 2 |
| high-threshold | 高分和中等分数的界限值，值本身被划分在高分中 | number | — | 4 |
| colors | icon 的颜色数组，共有 3 个元素，为 3 个分段所对应的颜色 | array | — | ['#F7BA2A', '#F7BA2A', '#F7BA2A'] |
| show-text | 是否显示辅助文字，若为真，则会从 texts 数组中选取当前分数对应的文字内容 | boolean | — | false |
| show-score | 是否显示当前分数，show-score 和 show-text 不能同时为真 | boolean | — | false |
| text-color | 辅助文字的颜色 | string | — | #1F2D3D |
| texts | 辅助文字数组 | array | — | ['极差', '失望', '一般', '满意', '惊喜'] |
| score-template | 分数显示模板 | string | — | {value} |

### slots
| name | 说明 | slot-scope |
| --- | --- | --- |
| text | 自定义 score 或者 text | - |
| default | 自定义内容 | - |
