<template>
  <view :style="{height: height,width:width}">
    <view class="free-drag" :style="freeDrag">
      <slot></slot>
    </view>
  </view>
</template>

<script>
import props from './prop.js'

export default {
  // #ifdef MP-WEIXIN
  // 将自定义节点设置成虚拟的，更加接近Vue组件的表现，能更好的使用flex属性
  options: {
      virtualHost: true
  },
  // #endif
  name: 'm-freedrag-container',
  mixins: [props],
  data() {
	  return {
		freeDrag: `position: relative;width: 100%;height: 100%;`
	  }
  }
}
</script>

<style lang="scss" scoped></style>