UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

34 lines (33 loc) 1 kB
import { type StyleValue } from 'vue'; import { type DefaultProps } from '../config'; 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, info: { width: number; height: number; }) => 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: () => DefaultProps<CropImageProps>; export interface CropImageSlots { default?(props: Record<string, never>): any; } export interface CropImageEmits extends TransitionHookEmits { (e: 'update:visible', visible: boolean): void; } export interface CropImageExpose { }