2020-08-13 11:47:56 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
|
|
|
<div
|
|
|
|
ref="target"
|
|
|
|
v-drag:target.translate
|
|
|
|
class="target"
|
|
|
|
/>
|
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import drag from 'veui/directives/drag'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
directives: {
|
|
|
|
drag
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-09-15 20:03:51 +08:00
|
|
|
<style lang="less" scoped>
|
2020-08-13 11:47:56 +08:00
|
|
|
.target {
|
2021-09-15 20:03:51 +08:00
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
2021-09-15 20:05:02 +08:00
|
|
|
background: #e7e7e7;
|
2020-08-13 11:47:56 +08:00
|
|
|
}
|
|
|
|
</style>
|