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

export default {
    components: { Moveable },
    setup() {
        const onRender = e => {
            e.target.style.cssText += e.cssText;
        };
        return { document, onRender };
    }
};
</script>
<template>
    <div class="root">
        <p class="description">
            * When you drag, the class name `${{`{ableName}`}}-view-dragging` is added to the viewContainer.
        </p>
        <div class="target">Target</div>
        <Moveable
            :target="'.target'"
            :draggable="true"
            :resizable="true"
            :rotatable="true"
            :viewContainer="document.body"
            @render="onRender"/>
    </div>
</template>