app').If you obtain an inaccuracy with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).To determine worldwide elements for Volar type-checking you are going to require to incorporate:.// components.d.ts.announce module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in design template.label cord (nonpayment: 'Vue3Spline') - specified customized element label.Conversely you may additionally import the part regionally.import Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You can at that point make use of the element in your design template.
Nuxt 3.This is actually still speculative. Will be actually upgraded very soon.You can install vue3-spline over yarn or even npm. spline-runtime is actually an addiction of vue3-spline as well as must be instantly set up when you put up vue3-spline.If you are making use of npm:.npm install vue3-spline@latest-- spare.If you are actually utilizing anecdote:.yarn incorporate vue3-spline@latest.Generate a file phoned plugins at the origin of your project.Generate a report called Vue3Spline.client.ts inside the plugins directory site.Add the following code to the Vue3Spline.client.ts data.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This must enroll as a worldwide component that you can call anywhere in your application under the tag.I would highly recommend utilizing a moms and dad tag to make certain that the computer animation merely lots know the customer side.
Github.