不幸的是,我正在使用包@types/cropperjs,它落后于当前的cropper.js版本,缺乏方法scale。declare class cropperjs {
* Scale the image.: number): void;export as namespace Cropper;
DefinitlyTyped回购的类型可以是 (看起来很相似,但太大了import * as Cropper from 'cropperjs</e
/static/assets/js/plugins/cropper.min.js" type="module"></script> import Cropper from "cropperjsimport declarations may only appear at top level of a moduleimport Cropper from "cro