跳到主要内容
版本:v8

ion-input-password-toggle

shadow

InputPasswordToggle 组件是 Input 的配套组件。它允许用户切换密码输入中文本的可见性。

基本用法

信息

InputPasswordToggle 必须与 type 属性设置为 'text''password'Input 一起使用。

使用任何其他 type 将导致记录警告。

属性

color

说明The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.
属性color
类型"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined
默认值undefined

hideIcon

说明The icon that can be used to represent hiding a password. If not set, the "eyeOff" Ionicon will be used.
属性hide-icon
类型string | undefined
默认值undefined

mode

说明The mode determines which platform styles to use.

这是一个虚拟属性,在初始化时设置一次,之后更改其值不会更新组件。
属性mode
类型"ios" | "md"
默认值undefined

showIcon

说明The icon that can be used to represent showing a password. If not set, the "eye" Ionicon will be used.
属性show-icon
类型string | undefined
默认值undefined

事件

该组件没有可用的事件。

方法

该组件没有可用的公共方法。

CSS Shadow Parts

该组件没有可用的 CSS 阴影部分。

CSS 自定义属性

该组件没有可用的 CSS 自定义属性。

插槽

该组件没有可用的插槽。