Skip to content
On this page

Pwd pwd

基本使用

组件 API

Attributes 属性

参数说明类型可选值默认值
list判断是否合法ICheck[][]
value密码值string''
popupOffset弹出框的偏移量(弹出框距离触发器的偏移距离)number10
showStrengthOnValidation只在满足所有条件时,才展示密码强度booleantrue/falsetrue
position弹框位置string'top'、 'tl'、 'tr'、 'bottom'、 'bl'、 'br'、 'left'、 'lt'、 'lb'、 'right'、 'rt'、 'rb''bottom'

ICheck

名称类型说明
labelstring文字
fn(value: string)=> boolean判断是否符合要求
tooltipstring在文案后展示问号,鼠标移入问号展示的文案

Slots 插槽

插槽名说明参数
默认插槽放入password