<template>
  <div class="n-drag" :data-draggable="draggable" v-drag="target"><slot></slot></div>
</template>

<script>
import drag from '@uif/next/lib/directives/drag'
import {prop} from '@uif/next/lib/utils/tools'

export default {
  name: 'n-drag',
  directives: {
    drag
  },
  props: {
    // 能否拖拽
    draggable: prop.boolean(true),
    // 容器类名
    target: prop.string()
  }
}
</script>
