zy-react-library/components/Signature/index.d.ts

29 lines
618 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import type { FC } from "react";
export interface SignatureValue {
/** 签字时间YYYY-MM-DD HH:mm:ss */
time: string;
/** 签字图片的 base64 编码 */
base64: string;
/** 签字图片的 file 对象 */
file: File;
}
export interface SignatureProps {
/** 确认签字回调 */
onConfirm: (value: SignatureValue) => void;
/** 签字区域宽度,默认为 752 */
width?: number;
/** 签字区域高度,默认为 300 */
height?: number;
/** 回显的签字图片 */
url?: string;
}
/**
* 签字组件
*/
declare const Signature: FC<SignatureProps>;
export default Signature;