sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
33 lines (32 loc) • 832 B
TypeScript
import { type StyleValue } from 'vue';
export interface CropImageProps {
rootStyle?: StyleValue;
rootClass?: string;
visible?: boolean;
src?: string;
cropScale?: string;
type?: 'png' | 'jpg';
quality?: number;
duration?: number;
success?: (filePath: string) => void;
fail?: (err: any) => void;
complete?: () => void;
id?: string;
beforeCrop?: (width: number, height: number) => number;
cancelText?: string;
confirmText?: string;
}
export declare const defaultCropImageProps: {
duration: number;
cropScale: string;
type: "png";
quality: number;
};
export interface CropImageSlots {
default?(props: Record<string, never>): any;
}
export interface CropImageEmits {
(e: 'update:visible', visible: boolean): void;
}
export interface CropImageExpose {
}