/** * 密码输入类型定义 */ export type PasswordType = 'numeric' | 'pattern' | 'text'; export interface NumericPasswordProps { /** 密码值 */ modelValue: string; /** 密码长度 */ length?: number; /** 是否遮蔽显示 */ masked?: boolean; /** 是否禁用 */ disabled?: boolean; /** 是否只读 */ readonly?: boolean; /** 主题 */ theme?: 'dark' | 'light'; /** 是否启用震动反馈 */ hapticFeedback?: boolean; /** 是否启用音效 */ soundFeedback?: boolean; } export interface NumericPasswordEmits { (e: 'update:modelValue', value: string): void; (e: 'complete', value: string): void; (e: 'error', message: string): void; (e: 'change', value: string): void; } export interface PatternPasswordProps { /** 密码值(点的索引数组) */ modelValue: number[]; /** 最少连接点数 */ minPoints?: number; /** 最多连接点数 */ maxPoints?: number; /** 是否显示路径 */ showPath?: boolean; /** 是否禁用 */ disabled?: boolean; /** 主题 */ theme?: 'dark' | 'light'; /** 是否启用震动反馈 */ hapticFeedback?: boolean; } export interface PatternPasswordEmits { (e: 'update:modelValue', value: number[]): void; (e: 'complete', value: number[]): void; (e: 'error', message: string): void; (e: 'change', value: number[]): void; } export interface PasswordInputProps { /** 密码值 */ modelValue: string | number[]; /** 密码类型 */ type?: PasswordType; /** 是否自动检测 */ autoDetect?: boolean; /** 主题 */ theme?: 'dark' | 'light'; } export interface PasswordInputEmits { (e: 'update:modelValue', value: string | number[]): void; (e: 'complete', value: string | number[]): void; (e: 'error', message: string): void; } /** 密码验证结果 */ export interface PasswordValidation { valid: boolean; message?: string; } //# sourceMappingURL=password.d.ts.map