sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
35 lines (34 loc) • 956 B
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
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: () => DefaultProps<SignatureProps>;
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;
}