Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
car-database-web
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • 中汽研标准应用数据库
  • car-database-web
  • Repository

Switch branch/tag
  • car-database-web
  • src
  • components
  • PdfIframe
  • index.vue
Find file
BlameHistoryPermalink
  • zhang's avatar
    feat: 修复bug,新增各项功能 · 3d3b3fdb
    zhang authored 7 months ago
    3d3b3fdb
index.vue 380 Bytes
EditWeb IDE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<template>
  <iframe
    :src="src"
    frameborder="0"
    width="100%"
    height="100%"
    class="pdf-iframe"
  ></iframe>
</template>

<script>
export default {
  name: '',
  data() {
    return {
      props: {}
    }
  },
  computed: {
    src() {
      return `/web-pdfjs2.6.347/web/viewer.html?file=${this.props.url}`
  }
}
}
</script>
<style lang="scss" scoped></style>

Replace index.vue

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.