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