2016-07-21 10:10:04 +08:00
|
|
|
---
|
|
|
|
category: Components
|
|
|
|
type: Form Controls
|
|
|
|
title: Rate
|
|
|
|
---
|
|
|
|
|
|
|
|
Rate component.
|
|
|
|
|
2016-09-10 13:43:30 +08:00
|
|
|
## When To Use
|
2016-07-21 10:10:04 +08:00
|
|
|
|
|
|
|
- Show evalutate.
|
|
|
|
- A quick rating operation on something.
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
| Property | Description | type | Default |
|
|
|
|
|------------|----------------|-------------------|-------------|
|
|
|
|
| count | star count | Number | 5 |
|
|
|
|
| value | current value | Number | - |
|
|
|
|
| defaultValue | default value | Number | 0 |
|
|
|
|
| onChange(value: Number) | callback | Function | - |
|
2016-10-15 15:54:59 +08:00
|
|
|
| allowHalf | whether to allow semi selection | Boolean | false |
|
2016-07-21 10:10:04 +08:00
|
|
|
| disabled | read only, unable to interact | Boolean | false |
|