<template>
  <el-dialog
    v-dialogDrag
    title="pdf预览"
    :visible.sync="dialogVisible"
    width="80%"
    append-to-body
  >
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="(item,index) in pdfList" :key="index">
        <RuoYiIframe :src="item.url" />
      </el-carousel-item>
    </el-carousel>
    <!-- <RuoYiIframe :src="src" /> -->
  </el-dialog>
</template>
<script>
import RuoYiIframe from '@/components/RuoYiIframe/index.vue'
export default {
  components: {
    RuoYiIframe
  },
  props: {
    pdfList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      dialogVisible: false
    }
  },
  methods: {
  }
}
</script>
