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

export default {
    components: { Moveable },
    setup() {
        const onDrag = e => {
            e.target.style.transform = e.transform;
        };
        return { onDrag };
    }
};
</script>
<template>
    <div class="container">
        <input
            type="text"
            class="target"/>
        <Moveable
            :target="'.target'"
            :draggable="true"
            @drag="onDrag"/>
    </div>
</template>