1.0.1 • Published 2 years ago
@fcli/vue-drag v1.0.1
vue-drag
VUE3 拖拽组件
npm install @fcli/vue-drag --save-dev 来安装
在项目中使用
import VerCode from '@fcli/vue-vercode';
const app=createApp(App)
app.use(VerCode);
使用实例
<div class="content">
<vue-drag right="20px" bottom="30px">
<div class="circle">+</div>
</vue-drag>
</div>
参数说明
属性 | 属性名称 | 类型 | 可选值 |
---|---|---|---|
right | 初始化时距离右边的距离 | string | 20px |
bottom | 初始化时距离底部的距离 | string | 30px |
slot
可拖拽组件中的自定义内容