Files
dvcp_v2_wxcp_app/components/VDrag/VDrag.vue
2024-10-31 16:22:41 +08:00

30 lines
451 B
Vue

<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>