<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="target"></div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :scalable="true"
            :rotatable="true"
            :padding="({ left: 10, right: 20, top: 30, bottom: 40 })"
            @render="onRender"/>
    </div>
</template>