<template>
<div style="width:100%;height:100%; position:relative;" class="flex-center el-wrap" 
  :draggable="isBtnShow">
  <div
    class="chart-wrap"
  >
    <img :id="`${$parent.isPreview?'preview_':''}image_${index}_${position}`" />
  </div>
  <el-tooltip content="按住拖动" placement="bottom" v-if="isBtnShow">
    <div 
        class="dragBtn"
        style="left:5%;top:5%;"
        v-if="isBtnShow&&![1,6].includes($parent.modelId)"
    ></div>
  </el-tooltip>
  <div
      class="closeBtn"
      style="right: 5%;top: 5%;"
      @click.stop="delChart(position)"
      v-if="isBtnShow"
    ></div>
</div>
  
</template>

<script>
import mixin from "./formatEl";
export default {
  mixins:[mixin],
  data() {
    return {};
  },
};
</script>

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