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

export default {
    components: { Moveable },
    setup() {
        const onDrag = e => {
            e.target.style.cssText += e.cssText;
        };
        const onDrag$0 = e => {
            e.target.style.cssText += e.cssText;
        };
        return { onDrag, onDrag$0 };
    }
};
</script>
<template>
    <div class="container">
        <p>checkInput (false)</p>
        <input
            type="input"
            class="target1"/>
        <p>checkInput (true)</p>
        <input
            type="input"
            class="target2"/>
        <Moveable
            :target="'.target1'"
            :draggable="true"
            @drag="onDrag"/>
        <Moveable
            :target="'.target2'"
            :draggable="true"
            :checkInput="true"
            @drag="onDrag$0"/>
    </div>
</template>