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

export default {
    components: { Moveable },
    data() {
        return {};
    },
    methods: {
        onDrag(e) {
            e.target.style.cssText += e.cssText;
        },
        onDrag$0(e) {
            e.target.style.cssText += e.cssText;
        }
    }
};
</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>