2021-02-03 12:22:31 +08:00
|
|
|
---
|
2022-08-17 09:59:16 +08:00
|
|
|
title: InputPassword 密码输入框
|
2021-02-03 12:22:31 +08:00
|
|
|
description:
|
|
|
|
type: 0
|
|
|
|
group: null
|
2021-08-16 11:46:29 +08:00
|
|
|
menuName: InputPassword
|
2021-02-03 12:22:31 +08:00
|
|
|
icon:
|
|
|
|
order: 35
|
|
|
|
---
|
|
|
|
|
|
|
|
## 基本用法
|
|
|
|
|
|
|
|
```schema: scope="body"
|
|
|
|
{
|
|
|
|
"type": "form",
|
2021-08-09 18:05:01 +08:00
|
|
|
"api": "/api/mock2/form/saveForm",
|
2021-06-07 10:09:55 +08:00
|
|
|
"body": [
|
2021-02-03 12:22:31 +08:00
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
"type": "input-password",
|
2021-02-03 12:22:31 +08:00
|
|
|
"name": "password",
|
|
|
|
"label": "密码"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-07-11 17:01:19 +08:00
|
|
|
## 配置密码显/隐藏
|
|
|
|
|
|
|
|
`revealPassword`属性可以设置是否展示密码显/隐按钮,默认为`true`。
|
|
|
|
|
|
|
|
```schema: scope="body"
|
|
|
|
{
|
|
|
|
"type": "form",
|
|
|
|
"api": "/api/mock2/form/saveForm",
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "input-password",
|
|
|
|
"name": "password",
|
|
|
|
"label": "密码",
|
|
|
|
"revealPassword": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-02-03 12:22:31 +08:00
|
|
|
## 属性表
|
|
|
|
|
2022-04-26 21:12:00 +08:00
|
|
|
请参考[输入框](./input-text)
|
|
|
|
|
2022-07-11 17:01:19 +08:00
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
|
|
| -------------- | --------- | ------ | --------------------- |
|
|
|
|
| revealPassword | `boolean` | `true` | 是否展示密码显/隐按钮 |
|
|
|
|
|
2022-04-26 21:12:00 +08:00
|
|
|
## 事件表
|
|
|
|
|
|
|
|
请参考[输入框](./input-text)
|
|
|
|
|
|
|
|
## 动作表
|
|
|
|
|
|
|
|
请参考[输入框](./input-text)
|