2016-03-31 14:17:09 +08:00
|
|
|
---
|
|
|
|
category: Components
|
|
|
|
chinese: 评分
|
2016-06-27 18:21:12 +08:00
|
|
|
type: Form Controls
|
2016-03-31 14:17:09 +08:00
|
|
|
english: Rate
|
|
|
|
---
|
2016-03-30 13:20:03 +08:00
|
|
|
|
|
|
|
评分组件。
|
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
- 对评价进行展示。
|
2016-04-05 19:14:21 +08:00
|
|
|
- 对事物进行快速的评级操作。
|
2016-03-30 13:20:03 +08:00
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
## API
|
2016-03-30 13:20:03 +08:00
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
| 属性 | 说明 | 类型 | 默认值 |
|
2016-04-05 19:14:21 +08:00
|
|
|
|------------|----------------|-------------------|-------------|
|
|
|
|
| count | star 总数 | Number | 5 |
|
|
|
|
| value | 当前数,受控值 | Number | - |
|
|
|
|
| defaultValue | 默认值 | Number | 0 |
|
|
|
|
| onChange(value: Number) | 回调 | Function | - |
|
|
|
|
| allowHalf | 是否允许半选 | Boolean | false |
|
|
|
|
| disabled | 只读,无法进行交互 | Boolean | false |
|