You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
634 B
25 lines
634 B
9 years ago
|
---
|
||
|
category: Components
|
||
8 years ago
|
subtitle: 评分
|
||
9 years ago
|
type: Form Controls
|
||
8 years ago
|
title: Rate
|
||
9 years ago
|
---
|
||
9 years ago
|
|
||
|
评分组件。
|
||
|
|
||
9 years ago
|
## 何时使用
|
||
|
|
||
|
- 对评价进行展示。
|
||
9 years ago
|
- 对事物进行快速的评级操作。
|
||
9 years ago
|
|
||
9 years ago
|
## API
|
||
9 years ago
|
|
||
9 years ago
|
| 属性 | 说明 | 类型 | 默认值 |
|
||
9 years ago
|
|------------|----------------|-------------------|-------------|
|
||
|
| count | star 总数 | Number | 5 |
|
||
|
| value | 当前数,受控值 | Number | - |
|
||
|
| defaultValue | 默认值 | Number | 0 |
|
||
|
| onChange(value: Number) | 回调 | Function | - |
|
||
|
| allowHalf | 是否允许半选 | Boolean | false |
|
||
|
| disabled | 只读,无法进行交互 | Boolean | false |
|