two.vue 1016 Bytes
<template>
  <div class="pdf_container">
    <NafmHeader navClass="nafmii-head-bg3" title="详情页面">
    </NafmHeader>
    <vue-pdf-app :pdf="fileUrl"></vue-pdf-app>
  </div>
</template>

<script>
import VuePdfApp from "vue-pdf-app";
import "vue-pdf-app/dist/icons/main.css";

export default {
  components:{
    VuePdfApp
  },
  data() {
    return {
      loading: false,
      inputValue: 1,
      currentPage: 0,
      pageCount: 0,
      fileUrl: 'study.pdf',
      numPages: undefined,
      src: '',
      scale: 100,
    }
  },
}
</script>
<style lang="less" scoped>
.header {
  display: flex;
  height: 50px;
  align-items: center;
  .pre {
    width: 50px;
    margin-right: 5px;
  }
  .next {
    width: 50px;
  }
  .center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.inputClass {
  width: 50px;
  color: #333;
  margin-right: 2px;
  text-align: center;
}
/deep/ .annotationLayer {
  margin-bottom: 10px;
  border-bottom: 10px solid #ccc;
}
</style>