@wfrog/vc
Version:
vue3 组件库 vc
33 lines (32 loc) • 1.4 kB
TypeScript
import { default as ICropper } from 'cropperjs';
import { ICropperProps } from './cropper';
declare function getCroppedCanvas(): HTMLCanvasElement | undefined;
declare function getBlobData(): Blob | undefined;
declare const _default: import('vue').DefineComponent<ICropperProps, {
instance: globalThis.ShallowRef<ICropper | undefined>;
getCroppedCanvas: typeof getCroppedCanvas;
getBlobData: typeof getBlobData;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
cancel: () => any;
init: () => any;
"update:visible": (value: boolean) => any;
finished: (canvas: HTMLCanvasElement, blob: Blob) => any;
}, string, import('vue').PublicProps, Readonly<ICropperProps> & Readonly<{
onCancel?: (() => any) | undefined;
onInit?: (() => any) | undefined;
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
onFinished?: ((canvas: HTMLCanvasElement, blob: Blob) => any) | undefined;
}>, {
dialog: boolean;
option: ICropper.Options;
image: HTMLImageElement | string | File;
visible: boolean;
imageSmoothingQuality: ICropper.ImageSmoothingQuality;
containerWidth: string;
containerHeight: string;
cropperWidth: number;
cropperHeight: number;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
workbenchRef: HTMLDivElement;
}, any>;
export default _default;