<div class="bg" v-drag>
v-drag是绑定的自定义指令
.bg {
width: 100px;
height: 100px;
background-color: blue;
position: absolute;
}
export default {
directives: {
drag: {
bind() {
<div class="bg" v-drag>
v-drag是绑定的自定义指令
.bg {
width: 100px;
height: 100px;
background-color: blue;
position: absolute;
}
export default {
directives: {
drag: {
bind() {