mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-14 08:51:24 +08:00
1476606077
* fix: InputPassword组件revealPassword属性没有update问题 (#4738) * fix inputFile 文件上传点击问题 * fix: Wizard服务端校验失败后仍然处于loading状态问题 (#4778) * fix: InputExcel触发reload后文案未更新问题 (#4780) * fix: 移动端时间选择器标题不显示字段名,timeRange高度超高问题 (#4783) * fix: AnchorNav内容更新后定位错误问题 (#4785) * feat: InputText支持更多CSS类名属性 (#4822) * fix: Card内容区使用表单项目组件时渲染2个label问题 (#4821) * feat: SearchBox支持搜索历史; fix: Tag组件ellipsis, closable不生效; doc: 文档搜索后内容不清空 (#4809) * doc: 补充Table中长文本ellipsis的示例 (#4824) * chore: 日期Picker组件label类型错误 (#4830) * fix: CURD开启autoFillHeight后固定列错位/不同步滚动问题 (#4748) Co-authored-by: allenve <yupeng.fe@qq.com>
61 lines
1.1 KiB
Markdown
61 lines
1.1 KiB
Markdown
---
|
|
title: InputPassword 密码输框
|
|
description:
|
|
type: 0
|
|
group: null
|
|
menuName: InputPassword
|
|
icon:
|
|
order: 35
|
|
---
|
|
|
|
## 基本用法
|
|
|
|
```schema: scope="body"
|
|
{
|
|
"type": "form",
|
|
"api": "/api/mock2/form/saveForm",
|
|
"body": [
|
|
{
|
|
"type": "input-password",
|
|
"name": "password",
|
|
"label": "密码"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
## 配置密码显/隐藏
|
|
|
|
`revealPassword`属性可以设置是否展示密码显/隐按钮,默认为`true`。
|
|
|
|
```schema: scope="body"
|
|
{
|
|
"type": "form",
|
|
"api": "/api/mock2/form/saveForm",
|
|
"body": [
|
|
{
|
|
"type": "input-password",
|
|
"name": "password",
|
|
"label": "密码",
|
|
"revealPassword": false
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
## 属性表
|
|
|
|
请参考[输入框](./input-text)
|
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
| -------------- | --------- | ------ | --------------------- |
|
|
| revealPassword | `boolean` | `true` | 是否展示密码显/隐按钮 |
|
|
|
|
## 事件表
|
|
|
|
请参考[输入框](./input-text)
|
|
|
|
## 动作表
|
|
|
|
请参考[输入框](./input-text)
|