Skip to content

PasswordInput 密码输入

WD UI 密码输入组件,专门用于密码输入。

基本使用

vue
<template>
  <wd-password-input v-model="password" placeholder="请输入密码" />
</template>

<script setup>
import { ref } from 'vue'
const password = ref('')
</script>

API

Props

参数说明类型默认值
v-model密码值string
placeholder占位文本string
disabled是否禁用booleanfalse
show-toggle是否显示切换按钮booleantrue

Events

事件名说明参数
change值改变时触发value