NewbiePassword

密码输入框

分为 4 个密码强度等级,每有以下字符的一种增强一个等级:数字,大写字母,小写字母,特殊字符 每个等级都有对应的颜色,当输入的密码包含对应的等级时,对应的等级颜色会高亮

Version: 1.0.0

Props

Prop nameDescriptionTypeValuesDefault
value输入框的值string-""
min最小长度number-8
max最大长度number-20
width宽度number|string-300

Events

Event namePropertiesDescription
update:value
changeevent Event - 事件对象输入框内容变化时的回调

示例


密码必须包含数字、小写字母、大写字母和特殊符号
<script setup>
const password = ref("")
</script>
<NewbiePassword v-model:value="password" width="300" />
Last Updated:
Contributors: sinceow