mobile_drag
v0.0.5
Published
npm install mobile_drag -S
Downloads
7
Readme
第一步
npm install mobile_drag -S
第二步
在需要使用的组件内引入
import drag from "mobile_drag/drag.vue";
注册
components: { drag },
第三步
作为标签使用
```
<drag>
<div class="mail iconfont icon-mail">
</div>
</drag>
```
固定定位或者绝对定位
.mail {
position: fixed;
top: 520px;
left: 300px;
background-color: #007aff;
padding: 16px;
border-radius: 50%;
font-size: 30px !important;
color: #fff;
z-index: 99999;
}