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

export default {
    components: { Moveable },
    setup() {
        const onDrag = e => {
            e.target.style.transform = e.transform;
        };
        const onDrag$0 = e => {
            e.target.style.transform = e.transform;
        };
        return { onDrag, onDrag$0 };
    }
};
</script>
<template>
    <div class="root">
        <div class="container">
            <div class="target target1">
                Target
                <div class="target target2">Target</div>
            </div>
            <Moveable
                target=".target1"
                :draggable="true"
                :stopPropagation="true"
                @drag="onDrag"/>
            <Moveable
                target=".target2"
                :draggable="true"
                :stopPropagation="true"
                @drag="onDrag$0"/>
        </div>
    </div>
</template>