<template>
<div
ref="dragBox"
id="box"
@touchstart="touchstartHandle('dragBox', $event)"
@touchmove="touchmoveHandle('dragBox', $event)"
>
可拖拽元素
</div>
</template>
<script>
export default {
data() {
return {
coordinate: {
client: {
},
elePosition: {
},
},
};
},
methods<
vue 移动端简单拖拽
最新推荐文章于 2024-05-14 23:22:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)