根据uniapp调整工程结构

This commit is contained in:
aixianling
2024-10-31 15:06:02 +08:00
parent 9b524f390c
commit b7d6c222e7
54 changed files with 1 additions and 2 deletions

29
components/VDrag.vue Normal file
View File

@@ -0,0 +1,29 @@
<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>