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

export default {
    components: { Moveable },
    data() {
        return {};
    },
    methods: { onRender(e) {
        e.target.style.cssText += e.cssText;
    } }
};
</script>
<template>
    <div class="root">
        <div
            class="container"
            style="width: 500px;transform: translate(100px, 100px) scale(2);"
        >
            <div class="target">Target</div>
            <Moveable
                :target="'.target'"
                :draggable="true"
                :scalable="true"
                @render="onRender"/>
        </div>
    </div>
</template>