Open zml212 opened 2 months ago
代码如下: 组件内引入
import 'vue-cropper/dist/index.css' import VueCropper from "vue-cropper"
使用
<VueCropper ref="mycropper" mode="cover" :img="options.img" :info="true" :autoCrop="options.autoCrop" :autoCropWidth="options.autoCropWidth" :autoCropHeight="options.autoCropHeight" :fixedBox="options.fixedBox" :outputType="options.outputType" @realTime="realTime" v-if="cropperDialogVisible"></VueCropper>
用的的Vue3+ts+vite
https://github.com/xyxiao001/cropper-test 可以参考这个仓库看看
如果是这样引入的话:
import 'vue-cropper/dist/index.css' import {VueCropper} from "vue-cropper"
会报一堆错:
代码如下: 组件内引入
使用
用的的Vue3+ts+vite