xyxiao001 / vue-cropper

A simple picture clipping plugin for vue
https://github.xyxiao.cn/vue-cropper/docs/vue3.html
MIT License
4.25k stars 694 forks source link

版本0.6.4无法按照文档Vue3全局导入CSS样式 #804

Open yassine-zhang opened 3 months ago

yassine-zhang commented 3 months ago

报错

image

复现

bun add vue-cropper
// main.js
import VueCropper from 'vue-cropper'
import 'vue-cropper/dist/index.css'

const app = createApp(App)

app.use(VueCropper)

app.mount('#app')

解决方案

将导入css代码更改为:import 'vue-cropper/next/dist/index.css'

仓库主页readme文件中CSS样式导入路径错误

xyxiao001 commented 3 months ago

vue3需要安装1.x版本,可以通过 npm i vue-cropper@next 方式安装

yassine-zhang commented 3 months ago

vue3需要安装1.x版本,可以通过 npm i vue-cropper@next 方式安装

我试试,谢谢哈