2020-07-28 10:03:53 +08:00
|
|
|
---
|
|
|
|
title: Number 数字输入框
|
2020-07-29 17:33:14 +08:00
|
|
|
description:
|
2020-07-28 10:03:53 +08:00
|
|
|
type: 0
|
|
|
|
group: null
|
|
|
|
menuName: Number
|
2020-07-29 17:33:14 +08:00
|
|
|
icon:
|
2020-07-28 10:03:53 +08:00
|
|
|
order: 32
|
|
|
|
---
|
2020-07-29 17:33:14 +08:00
|
|
|
|
2020-07-28 10:03:53 +08:00
|
|
|
## 基本用法
|
|
|
|
|
|
|
|
```schema:height="300" scope="body"
|
|
|
|
{
|
|
|
|
"type": "form",
|
|
|
|
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
|
|
|
|
"controls": [
|
|
|
|
{
|
|
|
|
"type": "number",
|
|
|
|
"name": "number",
|
|
|
|
"label": "数字"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 属性表
|
|
|
|
|
|
|
|
当做选择器表单项使用时,除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置
|
|
|
|
|
2020-07-29 17:33:14 +08:00
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
|
|
| --------- | ------------------------------- | ------ | -------------------- |
|
|
|
|
| min | [模板](../../concepts/template) | | 最小值 |
|
|
|
|
| max | [模板](../../concepts/template) | | 最大值 |
|
|
|
|
| step | `number` | | 步长 |
|
|
|
|
| precision | `number` | | 精度,即小数点后几位 |
|