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