sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
42 lines (41 loc) • 1.03 kB
TypeScript
import { type StyleValue } from 'vue';
export interface SignatureProps {
rootStyle?: StyleValue;
rootClass?: string;
color?: string;
lineWidth?: number;
background?: string;
fullScreen?: boolean;
duration?: number;
visible?: boolean;
cancelText?: string;
clearText?: string;
confirmText?: string;
customNavbar?: boolean;
type?: 'png' | 'jpg';
target?: 'dataURL' | 'filePath';
quality?: number;
}
export declare const defaultSignatureProps: {
lineWidth: number;
fullScreen: boolean;
color: string;
duration: number;
type: "png";
target: "dataURL";
quality: number;
};
export interface SignatureSlots {
default?(props: Record<string, never>): any;
}
export interface SignatureEmits {
(e: 'update:visible', visible: boolean): void;
(e: 'confirm', dataURL: string): void;
(e: 'clear'): void;
(e: 'cancel'): void;
}
export interface SignatureExpose {
resize: () => void;
clear: () => void;
confirm: () => void;
}