|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <pdf ref="pdf" :src="src" :page="page"></pdf>
|
|
|
|
|
|
|
+ <pdf ref="pdf" :src="src" :page="page" :class="fullSize ? 'full-size': ''"></pdf>
|
|
|
<pdf-controller
|
|
<pdf-controller
|
|
|
@change-discussion-show-state="handleChangeDiscussionShowState"
|
|
@change-discussion-show-state="handleChangeDiscussionShowState"
|
|
|
@previous="handlePrevious"
|
|
@previous="handlePrevious"
|
|
@@ -15,10 +15,16 @@ import Pdf from '@/components/PDF/Pdf'
|
|
|
import PdfController from '@/components/PDF/PdfController'
|
|
import PdfController from '@/components/PDF/PdfController'
|
|
|
export default {
|
|
export default {
|
|
|
components: { PdfController, Pdf },
|
|
components: { PdfController, Pdf },
|
|
|
- props: ['src'],
|
|
|
|
|
|
|
+ props: ['src', 'discussion'],
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
- page: 1
|
|
|
|
|
|
|
+ page: 1,
|
|
|
|
|
+ fullSize: !this.discussion
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ discussion (newValue) {
|
|
|
|
|
+ this.fullSize = !newValue
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -34,7 +40,6 @@ export default {
|
|
|
this.page++
|
|
this.page++
|
|
|
},
|
|
},
|
|
|
handleScreenShot () {
|
|
handleScreenShot () {
|
|
|
- console.log(this.$refs.pdf)
|
|
|
|
|
this.$refs.pdf.getScreenShot()
|
|
this.$refs.pdf.getScreenShot()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -42,7 +47,4 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-.pdf-controller{
|
|
|
|
|
- position: absolute;
|
|
|
|
|
-}
|
|
|
|
|
</style>
|
|
</style>
|