# uni-number-box
## Instructions
组件名:uni-number-box
代码块: uNumberBox
点击下载&安装
### Syntax
- 使用 ``(或 ``,当需要包裹子节点时)。
- 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。
#### Properties
| 属性名 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| value/v-model | Number | 0 | 输入框当前值 |
| min | Number | 0 | 最小值 |
| max | Number | 100 | 最大值 |
| step | Number | 1 | 每次点击改变的间隔大小 |
| disabled | Boolean | false | 是否为禁用状态 |
| width | Number | 40 | 宽度(单位:px) |
#### Events
| 事件名称 | 说明 | 返回值 |
| --- | --- | --- |
| change | 输入框值改变时触发的事件,参数为输入框当前的 value | - |
| focus | 输入框聚焦时触发的事件,参数为 event 对象 | - |
| blur | 输入框失焦时触发的事件,参数为 event 对象 | - |
#### Platform Compatibility
See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/uniui/uni-number-box.html`
### Examples
### Example (Example 1)
```vue
```
### Example (Example 2)
```html
```
### Example (Example 3)
```vue
数字输入框组件多用于购物车加减商品等场景
```
### Example (Example 4)
```html
数字输入框组件多用于购物车加减商品等场景
```
### Example (Example 5)
```html
```
Reference:
- [Official Documentation](https://uniapp.dcloud.net.cn/component/uniui/uni-number-box.html)
- [Plugin Marketplace](https://ext.dcloud.net.cn/plugin?name=number-box)
- [Local Example](examples/uni-ui/uni-number-box.vue)