Add missing swipe click component
This commit is contained in:
parent
23a6b86ef3
commit
0190a36070
2 changed files with 99 additions and 0 deletions
14
src/components/swipe_click/swipe_click.vue
Normal file
14
src/components/swipe_click/swipe_click.vue
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<template>
|
||||
<div
|
||||
v-bind="$attrs"
|
||||
@pointerdown="handlePointerDown"
|
||||
@pointermove="handlePointerMove"
|
||||
@pointerup="handlePointerUp"
|
||||
@pointercancel="handlePointerCancel"
|
||||
@click="handleNativeClick"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./swipe_click.js"></script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue