app').If you obtain an inaccuracy along with TS, try usage( Vue3Spline, label: "Vue3Spline" ).To define worldwide elements for Volar type-checking you will need to have to incorporate:.// components.d.ts.announce module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// use in design template.label string (nonpayment: 'Vue3Spline') - specified customized part name.Additionally you may also import the part in your area.import Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily after that make use of the component in your design template.
Nuxt 3.This is actually still experimental. Are going to be upgraded quickly.You may put in vue3-spline over anecdote or npm. spline-runtime is actually a dependency of vue3-spline as well as ought to be instantly installed when you install vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- conserve.If you are making use of anecdote:.anecdote add vue3-spline@latest.Generate a file called plugins at the origin of your job.Create a documents called Vue3Spline.client.ts inside the plugins directory.Include the complying with code to the Vue3Spline.client.ts documents.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).This ought to register as an international element that you may refer to as throughout your app under the tag.I will highly recommend utilizing a moms and dad tag to guarantee that the computer animation simply tons know the customer edge.
Github.