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.
|
|
|
---
|
|
|
|
category: Components
|
|
|
|
subtitle: 数字输入框
|
|
|
|
type: Form Controls
|
|
|
|
title: InputNumber
|
|
|
|
---
|
|
|
|
|
|
|
|
通过鼠标或键盘,输入范围内的数值。
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
当需要获取标准数值时。
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
属性如下
|
|
|
|
|
|
|
|
| 成员 | 说明 | 类型 | 默认值 |
|
|
|
|
|-------------|----------------|--------------------|--------------|
|
|
|
|
| min | 最小值 | Number | -Infinity |
|
|
|
|
| max | 最大值 | Number | Infinity |
|
|
|
|
| value | 当前值 | Number | |
|
|
|
|
| step | 每次改变步数,可以为小数 | Number or String | 1 |
|
|
|
|
| defaultValue | 初始值 | Number | |
|
|
|
|
| onChange | 变化回调 | Function | |
|
|
|
|
| disabled | 禁用 | Boolean | false |
|
|
|
|
| size | 输入框大小 | String | 无 |
|