<template>
  <section class="VDrag">
    <vuedraggable v-bind="$attrs" @change="handleChange">
      <slot/>
    </vuedraggable>
  </section>
</template>

<script>
import vuedraggable from 'vuedraggable'

export default {
  name: "VDrag",
  components: {vuedraggable},
  data: () => ({
    moveEvt: null
  }),
  methods: {
    handleChange(moved) {
      this.$emit('move', moved)
    }
  }
}
</script>

<style lang="scss" scoped>
.VDrag {
}
</style>
