<template>
  <div class="pdfcon">
    <iframe :src="currentTag.pdfInfo.url" frameborder="0" allowfullscreen></iframe>
  </div>
</template>

<script setup>
import { reactive, defineEmits, onBeforeMount, onMounted, ref, watchEffect, computed, watch, nextTick } from "vue";
import { useStore } from "vuex";
const store = useStore();

const currentTag = computed(() => store.getters['tags/currentTag'])
  
</script>

<style lang="scss" scoped>
.pdfcon{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  >iframe{
    width: 90%;
    height: 86%;
  }
  .title{
    position: absolute;
    left: 20px;
    top: 20px;
    height: 36px;
    line-height: 36px;
    padding: 0 30px;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    z-index: 999;
    >i{
      margin-right: 4px;
    }
  }
}
</style>