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

<script>
import {drag} from '@uif/core/lib/utils/next'

export default {
  directives: {
    drag
  },
  props: {
    // 能否拖拽
    draggable: {
      type: Boolean,
      default: true
    },
    // 容器类名
    target: {
      type: String,
      default: ''
    }
  }
}
</script>
