feat: 尝试适配移动端,虽然目前尚未实现。
This commit is contained in:
1 parent
e876c117c6
commit
5a843bf24a
5 files changed
+57
-6
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div ref="divRef" @dragstart="onDs" :draggable="true">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue';
|
||||
// import Sortable from 'sortablejs'
|
||||
|
||||
const emit = defineEmits<{
|
||||
onDragStart: [e: DragEvent]
|
||||
}>()
|
||||
|
||||
const divRef = ref<HTMLDivElement>()
|
||||
|
||||
const onDs = (e: DragEvent) => {
|
||||
emit('onDragStart', e)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in new issue
Block a user