<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">
        <input
            type="text"
            class="target"/>
        <Moveable
            :target="'.target'"
            :draggable="true"
            @drag="onDrag"/>
    </div>
</template>