// 签字结果接口 export interface SignatureResult { status: 'success' | 'failed' | 'cancelled' | 'cleared' base64?: string message?: string } // 签字组件属性接口 export interface SignatureComponentProps { label?: string required?: boolean disabled?: boolean uploadMode?: string imageList?: Array formReadonly?: boolean isAsyncUpload?: boolean // 是否使用异步上传-异步上传后将不会返回file表的数据,需要通过上传时的文件名去t_files中查询 } // 签字完成事件数据接口 export interface SignatureCompleteData { base64: string status: string } // 签字组件暴露的方法接口 export interface SignatureComponentExpose { clearSignature: () => void hasSignature: () => boolean getSignatureData: () => string previewSignature: () => void getSignatureList: () => Array } // base64图片工具类型 export interface Base64ImageData { raw: string // 原始base64数据(不含前缀) full: string // 完整的base64图片URL(含前缀) }