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
261 stars 32 forks source link

nuxtjs The order does not take effect #107

Closed 1030907690 closed 2 years ago

1030907690 commented 2 years ago

code

<template>
  <div>
    <div>
      <div class="big-box" v-dragscroll>
        <img src="http://127.0.0.1:5173/sandbox/assets/image.jpg" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
import { dragscroll } from "vue-dragscroll";
export default {
  auth: false,
  name: "IndexPage",
  directives: {
    'dragscroll': dragscroll
  },
};
</script>
<style lang="scss" scoped>
.big-box {
  margin-top: 500px;
  width: 300px;
  height: 300px;
  overflow: scroll;
}
</style>
1030907690 commented 2 years ago

For vue 2 please use the version 3.0 of this package

1030907690 commented 2 years ago

I version problem.