1.0.8 • Published 4 years ago
vue-drag-zqh v1.0.8
实现div拖拽功能,限制移动范围为浏览器的可视宽高
Install
npm install vue-drag-zqh --save
Usage
import Vue from 'vue';
import VueDragZqh from 'vue-drag-zqh';
Vue.use(VueDragZqh);
<template>
<div class="wrapper" style="width: 500px;height: 600px;background: blue">
<div
v-drag-me
>
</div>
</div>
</template>
<script>
export default {
};
</script>
<style scoped lang="less">
</style>