|
|
@@ -1,23 +1,80 @@
|
|
|
<template>
|
|
|
<div class="pdf-reader">
|
|
|
- <pdf></pdf>
|
|
|
+ <div class="pdf-wrapper">
|
|
|
+ <pdf></pdf>
|
|
|
+ <c-button
|
|
|
+ class="discussion-show-hide-button"
|
|
|
+ @click.native="handleDiscussionShowState"
|
|
|
+ >
|
|
|
+ {{showDiscussion ? '隐藏' : '显示'}}讨论区
|
|
|
+ </c-button>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="discussion-wrapper"
|
|
|
+ v-show="showDiscussion"
|
|
|
+ >
|
|
|
+ <h1 class="title">本页幻灯片讨论区</h1>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import Pdf from '@/components/Pdf'
|
|
|
+import CButton from '@/components/CButton'
|
|
|
|
|
|
export default {
|
|
|
- components: { Pdf },
|
|
|
- mounted () {}
|
|
|
+ components: { CButton, Pdf },
|
|
|
+ mounted () {},
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ showDiscussion: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleDiscussionShowState () {
|
|
|
+ this.showDiscussion = !this.showDiscussion
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.pdf-reader {
|
|
|
- min-height: 100vh;
|
|
|
+ color: #5a6a7a;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 5vh 30px;
|
|
|
+ height: 100vh;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
+ justify-content: space-around;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ background-color: #f0f4fa;
|
|
|
}
|
|
|
+
|
|
|
+.discussion-wrapper {
|
|
|
+ box-sizing: border-box;
|
|
|
+ max-height: 90vh;
|
|
|
+ height: calc(15vh + 30vw);
|
|
|
+ min-height: 50vh;
|
|
|
+ overflow: auto;
|
|
|
+ min-width: 350px;
|
|
|
+ flex: 1;
|
|
|
+ padding: 24px 24px 24px 24px;
|
|
|
+}
|
|
|
+
|
|
|
+@media (min-width: 1000px) {
|
|
|
+ .discussion-wrapper {
|
|
|
+ max-width: 450px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.pdf-wrapper {
|
|
|
+ position: relative;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.discussion-show-hide-button {
|
|
|
+ margin-top: 12px;
|
|
|
+}
|
|
|
+
|
|
|
</style>
|