sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
35 lines (34 loc) • 945 B
TypeScript
import { type StyleValue } from 'vue';
import { type TransitionHookEmits } from '../popup/common';
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;
cancel?: () => 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 extends TransitionHookEmits {
(e: 'update:visible', visible: boolean): void;
}
export interface CropImageExpose {
}