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

export default {
    components: { Moveable },
    data() {
        return {};
    },
    methods: {
        onDrag(e) {
            e.target.style.transform = e.transform;
        },
        onDrag$0(e) {
            e.target.style.transform = e.transform;
        }
    }
};
</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>