Closed okaxuan closed 2 years ago
全局引入: import VueCropper from 'vue-cropper'; import 'vue-cropper/dist/index.css' app.use(VueCropper)
option1 在setup()已定义
runtime-core.esm-bundler.js?5c40:38
[Vue warn]: Unhandled error during execution of render function
at <VueCropper ref="cropper" img="https://avatars2.githubusercontent.com/u/15681693?s=460&v=4" outputSize=1 ... > at <Index onVnodeUnmounted=fn
vue-cropper.es.js?04b0:1 Uncaught (in promise) TypeError: Object(...) is not a function at Proxy.g.render (vue-cropper.es.js?04b0:1)
https://github.com/xyxiao001/cropper-test/blob/master/src/App.vue 看看例子
vue3 不是 use 了吧,是 vue.component
https://codepen.io/xyxiao001/pen/yLooYKg
@xyxiao001 Thanks!
全局引入: import VueCropper from 'vue-cropper'; import 'vue-cropper/dist/index.css' app.use(VueCropper)
option1 在setup()已定义
runtime-core.esm-bundler.js?5c40:38
at <VueCropper ref="cropper" img="https://avatars2.githubusercontent.com/u/15681693?s=460&v=4" outputSize=1 ... > at <Index onVnodeUnmounted=fn
vue-cropper.es.js?04b0:1 Uncaught (in promise) TypeError: Object(...) is not a function at Proxy.g.render (vue-cropper.es.js?04b0:1)