import type { PropType, ExtractPropTypes } from 'vue'; import type { CropperOptions, CropperSelection } from 'cropperjs'; import type Cropper from 'cropperjs'; import type { EleTooltipProps } from '../ele-app/plus'; import type { BeforeUploadClick, CropperLocale } from './types'; /** * 属性 */ export declare const cropperProps: { /** 图片高度 */ height: StringConstructor; /** 图片地址 */ src: StringConstructor; /** 图片地址对应的图片类型, 如 'image/jpeg' */ imageType: { type: StringConstructor; default: string; }; /** 允许上传的图片类型 */ accept: { type: StringConstructor; default: string; }; /** 操作按钮布局 */ tools: { type: StringConstructor; default: string; }; /** 是否需要预览组件 */ preview: { type: BooleanConstructor; default: boolean; }; /** 预览组件宽度 */ previewWidth: { type: NumberConstructor; default: number; }; /** 是否返回 blob 数据 */ toBlob: BooleanConstructor; /** cropperjs 参数 */ options: PropType; /** cropperjs 裁剪方法参数 */ croppedOptions: PropType[0]>; /** 裁剪比例 */ aspectRatio: NumberConstructor; /** 是否需要 tooltip */ tooltip: { type: BooleanConstructor; default: boolean; }; /** tooltip 属性 */ tooltipProps: PropType; /** 上传按钮点击前的钩子 */ beforeUploadClick: PropType; /** 是否开启响应式 */ responsive: { type: BooleanConstructor; default: null; }; /** 国际化 */ locale: PropType>; }; export type CropperProps = ExtractPropTypes; /** * 事件 */ export declare const cropperEmits: { /** 初始化完成事件 */ init: (_cropperInstance: Cropper) => boolean; /** 裁剪完成事件 */ done: (_result?: Blob | string | null) => boolean; };