import{o as s,c as a,a as n}from"./app.51e46c58.js";const t='{"title":"InputPassword 密码输入框","description":"","frontmatter":{},"headers":[{"level":2,"title":"用法","slug":"用法"},{"level":2,"title":"InputPassword 属性","slug":"inputpassword-属性"}],"relativePath":"components/input-password.md","lastUpdated":1721205967753}',p={},e=n('
对 element-plus
的 Input
组件进行封装。
InputPassword 组件位于 src/components/InputPassword 内
<script setup lang="ts">\nimport { InputPassword } from '@/components/InputPassword'\nimport { ref } from 'vue'\n\nconst password = ref('')\n</script>\n\n<template>\n <InputPassword v-model="password" strength />\n</template>\n\n
除以下参数外,还支持 element-plus
的 Input
所有属性,详见
属性 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
strength | 是否显示强度校验 | boolean | - | false |
modelValue | 选中项绑定值,支持v-model | string | - | - |