<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"
            style="width: 300px;height: 300px;"
        ></div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :rotatable="true"
            :zoom="5"
            @render="onRender"/>
    </div>
</template>