2016-07-21 10:10:04 +08:00
|
|
|
---
|
|
|
|
category: Components
|
2016-11-09 14:43:32 +08:00
|
|
|
type: Data Entry
|
2016-07-21 10:10:04 +08:00
|
|
|
title: Rate
|
|
|
|
---
|
|
|
|
|
|
|
|
Rate component.
|
|
|
|
|
2016-09-10 13:43:30 +08:00
|
|
|
## When To Use
|
2016-07-21 10:10:04 +08:00
|
|
|
|
2016-11-16 21:33:37 +08:00
|
|
|
- Show evaluation.
|
2016-07-21 10:10:04 +08:00
|
|
|
- A quick rating operation on something.
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
| Property | Description | type | Default |
|
|
|
|
|------------|----------------|-------------------|-------------|
|
2017-01-20 20:10:50 +08:00
|
|
|
| count | star count | number | 5 |
|
|
|
|
| value | current value | number | - |
|
|
|
|
| defaultValue | default value | number | 0 |
|
|
|
|
| onChange | callback | Function(value: number) | - |
|
|
|
|
| allowHalf | whether to allow semi selection | boolean | false |
|
|
|
|
| disabled | read only, unable to interact | boolean | false |
|