效果
代码:
<template>
<div>
<div class="mainDiv" id="columns">
<div id="child"
class="childDiv"
v-for="(option,index) in options"
:key="index"
>
{
{option}}
</div>
<!-- <div id="test" class="test"
@touchstart="down" @touchmove="move" @touchend="end"
>什么都没有
</div>-->
</div>
</div>
</template>
<script>
export default {
name: "touchMove",
data() {
return {
options: ['选项1', '选项2', '选项3', '选项4'],
columns: undefined,
flags: false,
position: {
x: 0, y: 0},
nx: '', ny: '', dx: '', dy: '', xPum: '', yPum: '',
}