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.

29 lines
861 B

10 years ago
# InputNumber
- category: Components
- chinese: 数字输入框
9 years ago
- order: 4
10 years ago
---
通过鼠标或键盘,输入范围内的数值。
## 何时使用
当需要获取标准数值时。
10 years ago
## API
属性如下
| 成员 | 说明 | 类型 | 默认值 |
|-------------|----------------|--------------------|--------------|
| min | 最小值 | Number | -Infinity |
| max | 最大值 | Number | Infinity |
| value | 当前值 | Number | |
10 years ago
| step | 每次改变步数 | Number | 1 |
10 years ago
| defaultValue | 初始值 | Number | |
| onChange | 变化回调 | Function | |
9 years ago
| disabled | 禁用 | Boolean | false |
| size | 输入框大小 | String | 无 |