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

export default {
    components: { Moveable },
    data() {
        const target = undefiend;
        return { target };
    },
    methods: { onRender(e) {
        e.target.style.transform = e.transform;
    } },
    mounted() {
        this.target = document.querySelector("select");
    }
};
</script>
<template>
    <div class="root">
        <select style="position: relative;width: 200px;height: 100px;">
            <option value="1">Option1</option>
            <option value="2">Option2</option>
            <option value="3">Option3</option>
        </select>
        <Moveable
            :target="target"
            :draggable="true"
            @render="onRender"/>
    </div>
</template>