<script>
import Moveable from "vue-moveable";

export default {
    components: { Moveable },
    data() {
        return {};
    },
    methods: { onDrag(e) {
        e.target.style.transform = e.transform;
    } }
};
</script>
<template>
    <div class="container">
        <div class="target">
            <a href="https://daybrush.com">Target1</a>
        </div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :preventClickDefault="true"
            @drag="onDrag"/>
    </div>
</template>