Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬们,nuxt3怎么使用,求解答 #794

Open
radin-mu opened this issue Mar 13, 2024 · 2 comments
Open

大佬们,nuxt3怎么使用,求解答 #794

radin-mu opened this issue Mar 13, 2024 · 2 comments

Comments

@radin-mu
Copy link

nuxt3我全局导入了插件,nuxtApp.vueApp._context.components里面有VueCropper,但是我在页面上使用,ref获取不到这个,元素里面也渲染不出来

@ValueLan
Copy link

ValueLan commented Mar 14, 2024

nuxt 目的是ssr
ssr 目的是seo
他这个组件seo没有意义


<ClientOnly>
 这里写你的业务组件
</ClientOnly>

@icguanyu
Copy link

icguanyu commented Apr 25, 2024

just use in components (nuxt3 )

<script setup>
 import { VueCropper }  from "vue-cropper";
 import 'vue-cropper/dist/index.css'
</script>

<template>
  <div class="my-cropper">
   <VueCropper  ref="cropper" :img="option.img" .../>
  </div>
</template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants