donmbelembe / vue-dragscroll

A vue directive to make a scrollable element scroll by draging to the scroll direction
https://vue-dragscroll.clebinfosys.com/
MIT License
258 stars 32 forks source link

Nuxt3 update? #112

Closed feelthemoon closed 1 year ago

feelthemoon commented 1 year ago

any updates for Nuxt3?

taylott commented 1 year ago

not sure if this will help your or not but I added this at /plugins/dragscroll.js and I can use the directive in nuxt 3 with "v-dragscroll"

import VueDragscroll from "vue-dragscroll";

export default defineNuxtPlugin(({vueApp}) => {
  vueApp.use(VueDragscroll);
});
feelthemoon commented 1 year ago

not sure if this will help your or not but I added this at /plugins/dragscroll.js and I can use the directive in nuxt 3 with "v-dragscroll"

import VueDragscroll from "vue-dragscroll";

export default defineNuxtPlugin(({vueApp}) => {
  vueApp.use(VueDragscroll);
});

Ok, no problem, I've dealt with it

yanghoxom commented 11 months ago

@feelthemoon can you share abit about it? I also work on nuxt 3, and nothing happens when I add v-dragscroll to my element

feelthemoon commented 11 months ago

@feelthemoon can you share abit about it? I also work on nuxt 3, and nothing happens when I add v-dragscroll to my element

I just added a plugin in plugins directory, without it vue-dragscroll didn't work for me