ion-input-password-toggle
InputPasswordToggle 组件是 输入 的配套组件。它允许用户切换密码输入中文本的可见性。
¥The InputPasswordToggle component is a companion component to Input. It allows users to toggle the visibility of text in a password input.
基本用法
¥Basic Usage
信息
属性
¥Properties
color
| Description | 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. |
| Attribute | color |
| Type | "danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined |
| Default | undefined |
hideIcon
| Description | The icon that can be used to represent hiding a password. If not set, the "eyeOff" Ionicon will be used. |
| Attribute | hide-icon |
| Type | string | undefined |
| Default | undefined |
mode
| Description | The mode determines which platform styles to use. |
| Attribute | mode |
| Type | "ios" | "md" |
| Default | undefined |
showIcon
| Description | The icon that can be used to represent showing a password. If not set, the "eye" Ionicon will be used. |
| Attribute | show-icon |
| Type | string | undefined |
| Default | undefined |
事件
¥Events
No events available for this component.
方法
¥Methods
No public methods available for this component.