<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">
        <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>