wot-design-uni
Version:
一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。
43 lines (41 loc) • 979 B
text/typescript
/*
* @Author: weisheng
* @Date: 2024-03-15 20:40:34
* @LastEditTime: 2024-03-18 15:12:17
* @LastEditors: weisheng
* @Description:
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-password-input\types.ts
* 记得注释
*/
import { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp, makeStringProp } from '../common/props'
export const passwordInputProps = {
...baseProps,
/**
* 绑定的值
*/
modelValue: makeStringProp(''),
/**
* 是否隐藏密码内容
*/
mask: makeBooleanProp(true),
/**
* 输入框下方文字提示
*/
info: makeStringProp(''),
/**
* 输入框下方错误提示
*/
errorInfo: makeStringProp(''),
/**
* 输入框格子之间的间距,如 20px 2em,默认单位为 px
*/
gutter: makeNumericProp(0),
/**
* 密码最大长度
*/
length: makeNumberProp(6),
/**
* 是否已聚焦,聚焦时会显示光标
*/
focused: makeBooleanProp(true)
}