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

export default {
    components: { Moveable },
    setup() {
        const onRender = e => {
            e.target.style.cssText += e.cssText;
        };
        return { onRender };
    }
};
</script>
<template>
    <div class="container">
        <div
            class="drag-area"
            style="width: 100px;height: 100px;"
        >Drag</div>
        <div class="target"></div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :scalable="true"
            :rotatable="true"
            :dragTarget="'.drag-area'"
            :dragTargetSelf="true"
            @render="onRender"/>
    </div>
</template>