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

export default {
    components: { Moveable },
    setup() {
        const onDrag = e => {
            e.target.style.transform = e.transform;
        };
        return { onDrag };
    }
};
</script>
<template>
    <div class="no-container">
        <div class="will-change-container">
            <div class="will-change-target">Target1</div>
        </div>
        <Moveable
            :target="'.will-change-target'"
            :draggable="true"
            :preventClickDefault="true"
            @drag="onDrag"/>
    </div>
</template>