zydx-plus 1.15.62 → 1.15.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.15.62",
3
+ "version": "1.15.64",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -4,7 +4,7 @@
4
4
  <canvas :id="'pdf-canvas'+ index" v-for="(item,index) in pdfPages" class="pdf-canvas"></canvas>
5
5
  </div>
6
6
  <div class="book">
7
- <flipbook class="flipbook" :startPage="pageIndex" :pages="imgArr" @flip-left-end="flipLeft" @flip-right-end="flipRight" v-slot="flipbook" :singlePage="singlePage" :ambient="0" :gloss="1" :dragToFlip="false" :pagesHiRes="0">
7
+ <flipbook class="flipbook" :startPage="page" :pages="imgArr" @flip-left-end="flipLeft($event,false)" @flip-right-end="flipRight($event,false)" v-slot="flipbook" :singlePage="singlePage" :ambient="0" :gloss="1" :dragToFlip="false" :pagesHiRes="0">
8
8
  <div class="but" v-if="butShow">
9
9
  <button class="but-brown" :class="{'but-act': pageIndex === 1}" @click="flipbook.flipLeft">上一页</button>
10
10
  <button class="but-brown" :class="{'but-act': pageIndex === pdfPages}" @click="flipbook.flipRight">下一页</button>
@@ -26,7 +26,7 @@ export default {
26
26
  pdfPages: 0,
27
27
  imgArr: [],
28
28
  hei: 0,
29
- pageIndex: this.page
29
+ pageIndex: 1
30
30
  }
31
31
  },
32
32
  props: {
@@ -54,19 +54,23 @@ export default {
54
54
  })
55
55
  },
56
56
  methods: {
57
- flipLeft(e) {
57
+ flipLeft(e,v) {
58
58
  this.pageIndex = e
59
- this.$emit('flip', {
60
- page: e,
61
- total: this.pdfPages
62
- })
59
+ if(!v) {
60
+ this.$emit('flip', {
61
+ page: e,
62
+ total: this.pdfPages
63
+ })
64
+ }
63
65
  },
64
- flipRight(e) {
66
+ flipRight(e,v) {
65
67
  this.pageIndex = e
66
- this.$emit('flip', {
67
- page: e,
68
- total: this.pdfPages
69
- })
68
+ if(!v) {
69
+ this.$emit('flip', {
70
+ page: e,
71
+ total: this.pdfPages
72
+ })
73
+ }
70
74
  },
71
75
  readPdf() {
72
76
  let that = this
package/src/index.js CHANGED
@@ -49,7 +49,7 @@ function install(app) {
49
49
  }
50
50
 
51
51
  export default {
52
- version: '1.15.62',
52
+ version: '1.15.64',
53
53
  install,
54
54
  Calendar,
55
55
  Message,