<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">
        <div
            class="target"
            style="display: flex;flex-direction: column;align-items: center;gap: 21px;position: relative;width: 446px;height: 124px;z-index: 1;"
        ></div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :preventClickDefault="true"
            @drag="onDrag"/>
    </div>
</template>