Elements

组件

密码输入 Password Input

PasswordInput:密码输入。显示/隐藏按钮安静地停在字段边缘并原位切换,不产生位移或噪声。部件:Root、Label、Control、Input、Indicator、VisibilityTrigger。

#基础用法

password-input/basic Vue React

#属性

#Control

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#Indicator

属性类型默认值描述
fallbackstring密码隐藏时显示的替代内容

#Input

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#Label

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#Root

属性类型默认值描述
sizeString as PropType<"sm" | "md" | "lg">"md"输入框和可见性切换按钮使用的控件高度档位
autoCompletepasswordInput.Props['autoComplete']输入框的 autocomplete 属性
defaultVisibleboolean密码是否默认可见
disabledboolean是否禁用输入框
idstring组件内部状态机的唯一标识
idspasswordInput.Props['ids']密码输入框各元素的 id,便于组合使用
ignorePasswordManagersboolean是否忽略密码管理器
invalidboolean输入框是否无效
namestring输入框的 name 属性
readOnlyboolean输入框是否只读
requiredboolean输入框是否必填
translationspasswordInput.IntlTranslations无障碍元素及其状态使用的本地化文案
visibleboolean密码是否可见

#VisibilityTrigger

纯造型的部件——自身没有属性,沿用部件结构的共享样式。