docs_vue2/one/docs/demo/directives/drag/base.vue
2021-09-15 20:03:51 +08:00

29 lines
344 B
Vue

<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>
<style lang="less" scoped>
.target {
width: 80px;
height: 80px;
background: @veui-gray-color-6;
}
</style>