zydx-plus 1.32.286 → 1.32.288

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.32.286",
3
+ "version": "1.32.288",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -2127,24 +2127,24 @@ let buttonNames = {
2127
2127
  }
2128
2128
  },
2129
2129
  resource_lesson020: {
2130
- actionName: '逻辑思维',
2130
+ actionName: '思维训练',
2131
2131
  buttonList: {
2132
2132
  0: {
2133
2133
  headLevel: {
2134
2134
  default: "demand",
2135
2135
  demand: '训练要求',
2136
- resourceIndex: '训练题目',
2136
+ resourceIndex: '训练试题',
2137
2137
  analyse: '训练分析',
2138
2138
  countermeasure: '教学对策'
2139
2139
  },
2140
2140
  otherLevel: {
2141
2141
  default: "singletonClass",
2142
- singletonClass: this.getCurrentPrefix(item) + '题目',
2143
- allClass: this.getPrefix(item) + '题目'
2142
+ singletonClass: this.getCurrentPrefix(item) + '试题',
2143
+ allClass: this.getPrefix(item) + '试题'
2144
2144
  },
2145
2145
  lowLevel: {
2146
2146
  default: "singletonClass",
2147
- singletonClass: this.getCurrentPrefix(item) + '题目'
2147
+ singletonClass: this.getCurrentPrefix(item) + '试题'
2148
2148
  }
2149
2149
  }
2150
2150
  }
@@ -2155,10 +2155,10 @@ let buttonNames = {
2155
2155
  0: {
2156
2156
  headLevel: {
2157
2157
  default: "demand",
2158
- demand: '分析要求',
2159
- resourceIndex: '题  目',
2160
- review: '分析点评',
2161
- analyse: '分析资源',
2158
+ demand: '案析要求',
2159
+ resourceIndex: '案析题目',
2160
+ review: '案析点评',
2161
+ analyse: '案析分析',
2162
2162
  countermeasure: '教学对策'
2163
2163
  },
2164
2164
  otherLevel: {
@@ -88,6 +88,14 @@ export default {
88
88
  type: Boolean,
89
89
  default: false
90
90
  },
91
+ minWidth: {
92
+ type: Number,
93
+ default: 300
94
+ },
95
+ minHeight: {
96
+ type: Number,
97
+ default: 200
98
+ },
91
99
  },
92
100
  beforeUnmount() {
93
101
  this.clean()
@@ -174,6 +182,12 @@ export default {
174
182
  } else if (this.direction === 'r') {
175
183
  this.footRightOffset = event.clientX - this.x;
176
184
  }
185
+ if(this.footRightOffset < this.minWidth) {
186
+ this.footRightOffset = this.minWidth
187
+ }
188
+ if(this.footDownOffset < this.minHeight) {
189
+ this.footDownOffset = this.minHeight
190
+ }
177
191
  this.$emit('updateDrag', {
178
192
  width: this.footRightOffset,
179
193
  height: this.footDownOffset - ((this.dragTextShow)?60:30)
@@ -1,31 +1,39 @@
1
1
  <template>
2
- <div class="docView">
3
- <div>
4
- <div class="book">
5
- <div class="pages">
6
- <div class="wrap">
7
- <div class="wrap-one" :class="{'flip-animation-start': flipRights, 'flip-animation-end': flipLefts}" v-if="oneShow" :style="canvasStyle">
8
- <img :src="imgArr[(oneIndex === 'right')? pageIndex-1: pageIndex]" alt="" />
9
- </div>
10
- <div class="wrap-can">
11
- <canvas :id="id"></canvas>
12
- </div>
13
- </div>
14
- <div class="page-but-left" :style="{cursor: pageIndex === 1?'default':'pointer'}" @click="flipRight(pageIndex-=1,false)"></div>
15
- <div class="page-but-right" :style="{cursor: pageIndex === pdfPages?'default':'pointer'}" @click="flipLeft(pageIndex+=1,false)"></div>
16
- </div>
2
+ <div class="docView" >
3
+ <div>
4
+ <div class="book">
5
+ <div class="pages">
6
+ <div class="wrap">
7
+ <div class="wrap-one" :class="{'flip-animation-start': flipRights, 'flip-animation-end': flipLefts}"
8
+ v-if="oneShow" :style="canvasStyle">
9
+ <img :src="imgArr[(oneIndex === 'right')? pageIndex-1: pageIndex]" alt=""/>
17
10
  </div>
18
- <div class="but-wrap" v-if="butShow">
19
- <button class="but-brown" :disabled="pageIndex === 1" :class="{'but-act': pageIndex === 1}" @click="flipRight(pageIndex-=1,false)">上一页</button>
20
- <button class="but-brown" :disabled="pageIndex === pdfPages" :class="{'but-act': pageIndex === pdfPages}" @click="flipLeft(pageIndex+=1,false)">下一页</button>
21
- </div>
22
- </div>
23
- <div v-if="loading" class="loading-back">
24
- <div class="loading-cont">
25
- <div class="loadings">Loading</div>
11
+ <div class="wrap-can" ref="wrapCan">
12
+ <canvas @mousedown="mouseDown" @mousemove="mouseMove" :id="id"></canvas>
13
+ <!-- <div class="cursor" :style="cursorRounded"></div>-->
26
14
  </div>
15
+ </div>
16
+ <div class="page-but-left" :style="{cursor: pageIndex === 1?'default':'pointer'}"
17
+ @click.stop="flipRight(pageIndex-=1,false)"></div>
18
+ <div class="page-but-right" :style="{cursor: pageIndex === pdfPages?'default':'pointer'}"
19
+ @click.stop="flipLeft(pageIndex+=1,false)"></div>
27
20
  </div>
21
+ </div>
22
+ <div class="but-wrap" v-if="butShow">
23
+ <button class="but-brown" :disabled="pageIndex === 1" :class="{'but-act': pageIndex === 1}"
24
+ @click.stop="flipRight(pageIndex-=1,false)">上一页
25
+ </button>
26
+ <button class="but-brown" :disabled="pageIndex === pdfPages" :class="{'but-act': pageIndex === pdfPages}"
27
+ @click.stop="flipLeft(pageIndex+=1,false)">下一页
28
+ </button>
29
+ </div>
28
30
  </div>
31
+ <div v-if="loading" class="loading-back">
32
+ <div class="loading-cont">
33
+ <div class="loadings">Loading</div>
34
+ </div>
35
+ </div>
36
+ </div>
29
37
  </template>
30
38
 
31
39
  <script>
@@ -33,321 +41,496 @@ import * as PdfJs from 'pdfjs-dist/legacy/build/pdf.js' // 注意导入的写法
33
41
  PdfJs.GlobalWorkerOptions.workerSrc = require('pdfjs-dist/build/pdf.worker.entry')
34
42
  const jsdelivr = '/zydx/static/cmaps/'
35
43
  export default {
36
- name: "zydx-flip",
37
- data() {
38
- return {
39
- pdfPages: 0,
40
- imgArr: {},
41
- hei: 0,
42
- pageIndex: this.page,
43
- show: false,
44
- load: 0,
45
- loadWidth: 0,
46
- pages: false,
47
- pagesData: [],
48
- opacity: 1,
49
- id: null,
50
- loading: false,
51
- canvasStyle: {},
52
- oneShow: false,
53
- flipRights: false,
54
- flipLefts: false,
55
- oneIndex: 'right'
56
- }
44
+ name: "zydx-flip",
45
+ data() {
46
+ return {
47
+ pdfPages: 0,
48
+ imgArr: {},
49
+ hei: 0,
50
+ pageIndex: this.page,
51
+ show: false,
52
+ load: 0,
53
+ loadWidth: 0,
54
+ pages: false,
55
+ pagesData: [],
56
+ opacity: 1,
57
+ id: null,
58
+ loading: false,
59
+ canvasStyle: {},
60
+ oneShow: false,
61
+ flipRights: false,
62
+ flipLefts: false,
63
+ oneIndex: 'right',
64
+ scales: 1.35,
65
+ timer: null,
66
+ resultImg: '',
67
+ startX: 0,
68
+ startY: 0,
69
+ isDrawing: false,
70
+ sratio: 2,
71
+ ctx: null,
72
+ lineWidth: 2,
73
+ points: [],
74
+ }
75
+ },
76
+ props: {
77
+ source: {
78
+ type: String,
79
+ default: ''
80
+ },
81
+ singlePage: {
82
+ type: Boolean,
83
+ default: false
84
+ },
85
+ butShow: {
86
+ type: Boolean,
87
+ default: true
88
+ },
89
+ page: {
90
+ type: Number,
91
+ default: 1
57
92
  },
58
- props: {
59
- source: {
60
- type: String,
61
- default: ''
62
- },
63
- singlePage: {
64
- type: Boolean,
65
- default: false
66
- },
67
- butShow: {
68
- type: Boolean,
69
- default: true
70
- },
71
- page: {
72
- type: Number,
73
- default: 1
74
- },
75
- scale: {
76
- type: Number,
77
- default: 1.35
78
- },
93
+ scale: {
94
+ type: Number,
95
+ default: 1.35
79
96
  },
80
- watch: {
81
- page: {
82
- handler: function (val, oldVal) {
83
- this.pageIndex = val
84
- },
85
- immediate: true
86
- },
87
- source: {
88
- handler: function (val, oldVal) {
89
- this.readPdf()
90
- },
91
- deep: true,
92
- immediate: true
97
+ scaleStyle: {
98
+ type: Object,
99
+ default: () => {}
100
+ },
101
+ pointsData: {
102
+ type: Array,
103
+ default: () => []
104
+ }
105
+ },
106
+ watch: {
107
+ pointsData: {
108
+ handler: function (val) {
109
+ if(!val) return
110
+ this.points = val
111
+ },
112
+ immediate: true
113
+ },
114
+ page: {
115
+ handler: function (val) {
116
+ this.pageIndex = val
117
+ },
118
+ immediate: true
119
+ },
120
+ source: {
121
+ handler: function () {
122
+ this.readPdf()
123
+ },
124
+ deep: true,
125
+ immediate: true
126
+ },
127
+ scaleStyle: {
128
+ handler: function (val) {
129
+ if(!val) return
130
+ if (this.timer) {
131
+ clearTimeout(this.timer)
93
132
  }
133
+ this.timer = setTimeout(() => {
134
+ this.scales = val.width / 550
135
+ if(this.scales >= this.scale) {
136
+ this.scales = this.scale
137
+ }
138
+ this.readPdf(1)
139
+ }, 200)
140
+ },
141
+ deep: true
142
+ }
143
+ },
144
+ emits: ['flip','updateData'],
145
+ mounted() {
146
+ this.id = 'canvas-wrap' + Math.random().toString(36).substr(2)
147
+ // 在画板以外松开鼠标后冻结画笔
148
+ document.onmouseup = () => {
149
+ if (this.isDrawing) this.mouseUp()
150
+ }
151
+ },
152
+ methods: {
153
+ mouseDown (e) {
154
+ e = e || event
155
+ e.preventDefault()
156
+ this.isDrawing = true
157
+ let obj = {
158
+ x: e.offsetX*this.sratio,
159
+ y: e.offsetY*this.sratio
160
+ }
161
+ this.drawStart(obj)
94
162
  },
95
- emits: ['flip'],
96
- mounted() {
97
- this.id = 'canvas-wrap' + Math.random().toString(36).substr(2)
163
+ mouseMove (e) {
164
+ e = e || event
165
+ e.preventDefault()
166
+ if (this.isDrawing) {
167
+ let obj = {
168
+ x: e.offsetX*this.sratio,
169
+ y: e.offsetY*this.sratio
170
+ }
171
+ this.drawMove(obj)
172
+ }
98
173
  },
99
- methods: {
100
- flipLeft(e,v) {
101
- if(e > this.pdfPages) {
102
- this.pageIndex = this.pdfPages
103
- return
104
- }else {
105
- this.pageIndex = e
106
- }
107
- this.oneIndex = 'right'
108
- this.readPdf()
109
- if(!v) {
110
- this.$emit('flip', {
111
- page: this.pageIndex,
112
- total: this.pdfPages
113
- })
114
- }
115
- },
116
- flipRight(e,v) {
117
- if(e < 1) {
118
- this.pageIndex = 1
119
- return
120
- }else {
121
- this.pageIndex = e
122
- }
123
- this.oneIndex = 'left'
124
- this.readPdf()
125
- if(!v) {
126
- this.$emit('flip', {
127
- page: this.pageIndex,
128
- total: this.pdfPages
129
- })
130
- }
131
- },
132
- readPdf() {
133
- if(this.source === '' || this.source === undefined || this.source === null) return
134
- let that = this
135
- that.loading = true
136
- if(that.imgArr[that.pageIndex - 1] !== undefined) {
137
- that.oneShow = that.pageIndex !== 1
174
+ mouseUp (e) {
175
+ e = e || event
176
+ e.preventDefault()
177
+ let obj = {
178
+ x: e.offsetX*this.sratio,
179
+ y: e.offsetY*this.sratio
180
+ }
181
+ this.drawEnd(obj)
182
+ this.isDrawing = false
183
+ },
184
+ // 绘制
185
+ drawStart (obj) {
186
+ obj.index = this.pageIndex
187
+ obj.start = 'start'
188
+ obj.scale = this.scales
189
+ this.startX = obj.x
190
+ this.startY = obj.y
191
+ this.ctx.beginPath()
192
+ this.ctx.strokeStyle = 'red'
193
+ this.ctx.moveTo(this.startX, this.startY)
194
+ this.ctx.lineTo(obj.x, obj.y)
195
+ this.ctx.lineCap = 'round'
196
+ this.ctx.lineJoin = 'round'
197
+ this.ctx.lineWidth = this.lineWidth * this.sratio
198
+ this.ctx.stroke()
199
+ this.ctx.closePath()
200
+ this.points.push(obj)
201
+ },
202
+ drawEnd (obj) {
203
+ obj.index = this.pageIndex
204
+ obj.start = 'end'
205
+ obj.scale = this.scales
206
+ this.ctx.beginPath()
207
+ this.ctx.strokeStyle = 'red'
208
+ this.ctx.moveTo(this.startX, this.startY)
209
+ this.ctx.lineTo(obj.x, obj.y)
210
+ this.ctx.lineCap = 'round'
211
+ this.ctx.lineJoin = 'round'
212
+ this.ctx.stroke()
213
+ this.ctx.closePath()
214
+ this.points.push(obj)
215
+ this.$emit('updateData', this.points)
216
+ },
217
+ drawMove (obj) {
218
+ obj.index = this.pageIndex
219
+ obj.start = 'move'
220
+ obj.scale = this.scales
221
+ this.ctx.beginPath()
222
+ this.ctx.moveTo(this.startX, this.startY)
223
+ this.ctx.lineTo(obj.x, obj.y)
224
+ this.ctx.strokeStyle = 'red'
225
+ this.ctx.lineWidth = this.lineWidth * this.sratio
226
+ this.ctx.lineCap = 'round'
227
+ this.ctx.lineJoin = 'round'
228
+ this.ctx.stroke()
229
+ this.ctx.closePath()
230
+ this.startY = obj.y
231
+ this.startX = obj.x
232
+ this.points.push(obj)
233
+ },
234
+ flipLeft(e, v) {
235
+ if (e > this.pdfPages) {
236
+ this.pageIndex = this.pdfPages
237
+ return
238
+ } else {
239
+ this.pageIndex = e
240
+ }
241
+ this.oneIndex = 'right'
242
+ this.readPdf()
243
+ if (!v) {
244
+ this.$emit('flip', {
245
+ page: this.pageIndex,
246
+ total: this.pdfPages
247
+ })
248
+ }
249
+ },
250
+ flipRight(e, v) {
251
+ if (e < 1) {
252
+ this.pageIndex = 1
253
+ return
254
+ } else {
255
+ this.pageIndex = e
256
+ }
257
+ this.oneIndex = 'left'
258
+ this.readPdf()
259
+ if (!v) {
260
+ this.$emit('flip', {
261
+ page: this.pageIndex,
262
+ total: this.pdfPages
263
+ })
264
+ }
265
+ },
266
+ readPdf(n) {
267
+ if (this.source === '' || this.source === undefined || this.source === null) return
268
+ let that = this
269
+ if(n !== 1) that.loading = true
270
+ if (that.imgArr[that.pageIndex - 1] !== undefined) {
271
+ that.oneShow = that.pageIndex !== 1
272
+ }
273
+ const loadingTask = PdfJs.getDocument({
274
+ url: this.source,
275
+ cMapUrl: jsdelivr,
276
+ cMapPacked: true
277
+ })
278
+ loadingTask.promise.then((pdf) => {
279
+ that.pdfPages = pdf.numPages // 获取pdf文件的总页数
280
+ pdf.getPage(that.pageIndex).then(function (page) {
281
+ let canvas = document.getElementById(that.id)
282
+ that.ctx = canvas.getContext('2d');
283
+ let viewport = page.getViewport({scale: that.scales})
284
+ canvas.width = viewport.width * that.sratio
285
+ canvas.height = viewport.height * that.sratio
286
+ canvas.style.width = viewport.width + 'px'
287
+ canvas.style.height = viewport.height + 'px'
288
+ that.canvasStyle = {
289
+ width: viewport.width + 'px',
290
+ height: viewport.height + 'px',
291
+ marginLeft: -(viewport.width / 2) + 'px'
292
+ }
293
+ let renderContext = {
294
+ canvasContext: that.ctx,
295
+ viewport: viewport,
296
+ transform: [2, 0, 0, 2, 0, 0] //这里会进行放大,解决模糊问题
297
+ }
298
+ page.render(renderContext)
299
+ that.loading = false
300
+ if (that.oneIndex === 'right') {
301
+ that.flipRights = true
302
+ that.flipLefts = false
303
+ } else {
304
+ that.flipRights = false
305
+ that.flipLefts = true
306
+ }
307
+ // 获取canvas的base64数据
308
+ setTimeout(() => {
309
+ that.flipRights = false
310
+ that.flipLefts = false
311
+ that.oneShow = false
312
+ that.imgArr[that.pageIndex] = canvas.toDataURL('image/jpeg', 1)
313
+ for(let i = 0; i < that.points.length; i++) {
314
+ if(that.points[i].index === that.pageIndex) {
315
+ that.ctx.beginPath()
316
+ that.ctx.moveTo(that.points[i].x*that.scales/that.points[i].scale,that.points[i].y*that.scales/that.points[i].scale)
317
+ if(that.points[i].start !== 'end') {
318
+ that.ctx.lineTo(that.points[i+1].x*that.scales/that.points[i].scale, that.points[i+1].y*that.scales/that.points[i].scale)
319
+ }
320
+ that.ctx.strokeStyle = 'red'
321
+ that.ctx.lineCap = 'round'
322
+ that.ctx.lineJoin = 'round'
323
+ that.ctx.lineWidth = that.lineWidth * that.sratio
324
+ that.ctx.stroke()
325
+ that.ctx.closePath()
326
+ }
138
327
  }
139
- const loadingTask = PdfJs.getDocument({
140
- url: this.source,
141
- cMapUrl: jsdelivr,
142
- cMapPacked: true
143
- })
144
- loadingTask.promise.then((pdf) => {
145
- that.pdfPages = pdf.numPages // 获取pdf文件的总页数
146
- pdf.getPage(that.pageIndex).then(function (page) {
147
- let canvas = document.getElementById(that.id)
148
- let ctx = canvas.getContext('2d');
149
- let viewport = page.getViewport({scale: that.scale})
150
- canvas.width = viewport.width * 2
151
- canvas.height = viewport.height * 2
152
- canvas.style.width = viewport.width + 'px'
153
- canvas.style.height = viewport.height + 'px'
154
- that.canvasStyle = {
155
- width: viewport.width + 'px',
156
- height: viewport.height + 'px',
157
- marginLeft: -(viewport.width/2) + 'px'
158
- }
159
- let renderContext = {
160
- canvasContext: ctx,
161
- viewport: viewport,
162
- transform: [2, 0, 0, 2, 0, 0] //这里会进行放大,解决模糊问题
163
- }
164
- page.render(renderContext)
165
- that.loading = false
166
- if(that.oneIndex === 'right') {
167
- that.flipRights = true
168
- that.flipLefts = false
169
- }else {
170
- that.flipRights = false
171
- that.flipLefts = true
172
- }
173
- // 获取canvas的base64数据
174
- setTimeout(() => {
175
- that.flipRights = false
176
- that.flipLefts = false
177
- that.oneShow = false
178
- that.imgArr[that.pageIndex] = canvas.toDataURL('image/jpeg', 1)
179
- }, 1000)
180
- })
181
- })
182
- }
328
+ }, 1000)
329
+ })
330
+ })
183
331
  }
332
+ }
184
333
  }
185
334
  </script>
186
335
 
187
336
  <style scoped>
337
+ .cursor{
338
+ position: fixed;
339
+ top: 0;
340
+ left: 0;
341
+ z-index: 9999;
342
+ width: 15px;
343
+ height: 15px;
344
+ margin-top: -7px;
345
+ margin-left: -7px;
346
+ cursor: none;
347
+ transition: all 0s ease-in-out;
348
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMkAAADICAYAAABCmsWgAAAAAXNSR0IArs4c6QAACg5JREFUeF7t3W+SEzcQxmFxjXwiZ8gF4HvuAFTlGqnASSAnAU4CnCSp9tq76/Wfaclyq1/pN1UUIauZ0bzqp6QZe+1XhY0E8iXwupTybt+tN6UU+7f9+bn/f9/2//1r/7f9+27bq7sdmQOTQH0C/5RS3u9B1OxteL6UUr6XUrqDAUnNUND2XgnYbPG5Ace5/hiYT3s0XfoLki4xcpDGBA7Lqo+N+1/bzbC8fbZEaz4FSJqjY8cbEzAgNnvYLHKv7bAMs5mleQNJc3TseEMCBuPrDfvX7mr3KR9aZxWQ1MZN+1sTiAZy6G/z8gsktw45+9ckYE+ubIk1amuC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VM2ZB8oMPltuNE0CSAcm03GKpBZCEPB66lGEm4akWQNICyYJk9adaLLFSE8kxk6y81AJIciAZZpKVl1q8WVEASAYkq75XCyAiQDIgWXGpBRAhIKORrLjUAogYkNFIVltqAUQQyGgkK73KDhBRICORrLTUAogwkJFIVllqAUQcyEgkKyy1ADIBkJFIZn/0C5BJgIxCMvv9CEAmAjIKycz3IwCZDMgoJLMutfgKtgmBjEAy61LLvnrNvqOQbcIEon/pasal1pf9dxROWB5c0oiZZLZHv/bhFZ8opbkTiJ5JZrofseUV33A7t4/d1UUimeV+xGDYV0DbjTrbAglEIlG/HzEUtrSyexC2hRKIRKJ8P8K9x0IoXl5qJBLF+xHD8S9Lq4WFBN6TKN2P2LLKllQ8tVrbxuPVR80kCvcj4ADF2QSikGT9ALoDDJZUALmYQBSSTDftBxjfeZ0DGZ4EVkFygPGLR7iesqDN8wRmR2Iv/NlSitc2qPvmBGZEYjDsD0+nmsuCHUfMJPe8ceceg5q+awJRM0nv10l4KnXXsuDgI2aS16UUe8LVuhkKW0Id3j/Vehz2I4HqBKJmEutYzZeHGoYDDB7VVg8rO/RMIBKJ9dtmlHellDdnvkj08AQKFD1HmGPdnEA0kps7zAFIIDoBkEQnzvnkEgCJ3JDR4egEQBKdOOeTSwAkckNGh6MTAEl04pxPLgGQyA0ZHY5OACTRiXM+uQRAIjdkdDg6AZBEJ8755BIAidyQ0eHoBEASnTjnk0sAJHJDRoejEwBJdOKcTy4BkMgNGR2OTgAk0YlzPrkEQCI3ZHQ4OgGQRCfO+eQSAInckNHh6ARAEp0455NLACRyQ0aHoxMASXTinE8uAZDIDRkdjk4AJNGJcz65BEAiN2R0ODqB/wFZUuxeABS1qwAAAABJRU5ErkJggg==") no-repeat 0 0;
349
+ background-size: 100% 100%;
350
+ user-select: none;
351
+ }
188
352
  /*动画部分*/
189
353
  /*I'm the home page动画*/
190
354
  .flip-animation-start {
191
- transform-origin: left center;
192
- animation: flipBook1 1s forwards;
355
+ transform-origin: left center;
356
+ animation: flipBook1 1s forwards;
193
357
  }
358
+
194
359
  .flip-animation-end {
195
- transform-origin: left center;
196
- animation: flipBook2 1s forwards;
360
+ transform-origin: left center;
361
+ animation: flipBook2 1s forwards;
197
362
  }
363
+
198
364
  @keyframes flipBook1 {
199
- 0% {
200
- transform: perspective(3000px) rotateY(0deg);
201
- opacity: 1;
202
- }
203
- 60%{
204
- opacity: 1;
205
- }
206
- 100% {
207
- transform: perspective(3000px) rotateY(-160deg);
208
- opacity: 0;
209
- }
365
+ 0% {
366
+ transform: perspective(3000px) rotateY(0deg);
367
+ opacity: 1;
368
+ }
369
+ 60% {
370
+ opacity: 1;
371
+ }
372
+ 100% {
373
+ transform: perspective(3000px) rotateY(-160deg);
374
+ opacity: 0;
375
+ }
210
376
  }
377
+
211
378
  /*关闭书页*/
212
379
  @keyframes flipBook2 {
213
- 0% {
214
- transform: perspective(3000px) rotateY(-160deg);
215
- opacity: 0;
216
- }
217
- 30%{
218
- opacity: 1;
219
- }
220
- 70%{
221
- opacity: 1;
222
- }
223
- 100% {
224
- transform: perspective(3000px) rotateY(0deg);
225
- opacity: 0;
226
- }
380
+ 0% {
381
+ transform: perspective(3000px) rotateY(-160deg);
382
+ opacity: 0;
383
+ }
384
+ 30% {
385
+ opacity: 1;
386
+ }
387
+ 70% {
388
+ opacity: 1;
389
+ }
390
+ 100% {
391
+ transform: perspective(3000px) rotateY(0deg);
392
+ opacity: 0;
393
+ }
227
394
  }
228
- .wrap-one{
229
- position: absolute;
230
- top: 0;
231
- left: 50%;
232
- right: 0;
233
- bottom: 0;
234
- z-index: 1;
395
+
396
+ .wrap-one {
397
+ position: absolute;
398
+ top: 0;
399
+ left: 50%;
400
+ right: 0;
401
+ bottom: 0;
402
+ z-index: 1;
235
403
  }
236
- .wrap-one img{
237
- width: 100%;
238
- height: 100%;
404
+
405
+ .wrap-one img {
406
+ width: 100%;
407
+ height: 100%;
239
408
  }
240
- .wrap{
241
- width: 100%;
242
- height: 100%;
243
- display: flex;
244
- align-items: center;
245
- position: relative;
409
+
410
+ .wrap {
411
+ width: 100%;
412
+ height: 100%;
413
+ display: flex;
414
+ align-items: center;
415
+ position: relative;
246
416
  }
247
- .wrap-can{
248
- display: inline-block;
249
- margin: 0 auto;
417
+
418
+ .wrap-can {
419
+ display: inline-block;
420
+ margin: 0 auto;
421
+ //cursor: none;
250
422
  }
251
- .but-wrap{
252
- text-align: center;
423
+
424
+ .but-wrap {
425
+ text-align: center;
253
426
  }
254
- .pages{
255
- width: 100%;
256
- height: 100%;
257
- position: relative;
427
+
428
+ .pages {
429
+ width: 100%;
430
+ height: 100%;
431
+ position: relative;
258
432
  }
259
433
 
260
- .page-but-left{
261
- position: absolute;
262
- top: 0;
263
- bottom: 0;
264
- left: 0;
265
- z-index: 1;
266
- width: 10%;
434
+ .page-but-left {
435
+ position: absolute;
436
+ top: 0;
437
+ bottom: 0;
438
+ left: 0;
439
+ z-index: 1;
440
+ width: 8%;
267
441
  }
268
- .page-but-right{
269
- position: absolute;
270
- top: 0;
271
- bottom: 0;
272
- right: 0;
273
- z-index: 1;
274
- width: 10%;
442
+
443
+ .page-but-right {
444
+ position: absolute;
445
+ top: 0;
446
+ bottom: 0;
447
+ right: 0;
448
+ z-index: 1;
449
+ width: 8%;
275
450
  }
276
- .load>span{
277
- display: inline-block;
278
- width: 100%;
279
- text-align: center;
280
- padding-bottom: 10px;
281
- font-size: 14px;
451
+
452
+ .load > span {
453
+ display: inline-block;
454
+ width: 100%;
455
+ text-align: center;
456
+ padding-bottom: 10px;
457
+ font-size: 14px;
282
458
  }
283
- .docView{
284
- height: 100%;
285
- position: relative;
459
+
460
+ .docView {
461
+ height: 100%;
462
+ position: relative;
286
463
  }
287
- .but-brown{
288
- background-color: #c64c10;
289
- padding: 0 20px;
290
- font-size: 12px;
291
- color: #fff;
292
- height: 24px;
293
- line-height: 24px;
294
- border-radius: 5px;
295
- border: 0;
296
- cursor: pointer;
297
- margin-left: 10px;
464
+
465
+ .but-brown {
466
+ background-color: #c64c10;
467
+ padding: 0 20px;
468
+ font-size: 12px;
469
+ color: #fff;
470
+ height: 24px;
471
+ line-height: 24px;
472
+ border-radius: 5px;
473
+ border: 0;
474
+ cursor: pointer;
475
+ margin-left: 10px;
298
476
  }
299
- .book{
300
- width: 100%;
301
- height: 100%;
477
+
478
+ .book {
479
+ width: 100%;
480
+ height: 100%;
302
481
  }
303
- .but-act{
304
- background-color: #bbbbbb;
305
- color: #fff;
482
+
483
+ .but-act {
484
+ background-color: #bbbbbb;
485
+ color: #fff;
306
486
  }
307
- .loading-back{
308
- position: absolute;
309
- top: 0;
310
- left: 0;
311
- right: 0;
312
- bottom: 0;
313
- z-index: 100;
314
- display: flex;
315
- align-items: center;
487
+
488
+ .loading-back {
489
+ position: absolute;
490
+ top: 0;
491
+ left: 0;
492
+ right: 0;
493
+ bottom: 0;
494
+ z-index: 100;
495
+ display: flex;
496
+ align-items: center;
316
497
  }
317
- .loading-cont{
318
- display: inline-block;
319
- margin: 0 auto;
498
+
499
+ .loading-cont {
500
+ display: inline-block;
501
+ margin: 0 auto;
320
502
  }
503
+
321
504
  .loadings {
322
- display: inline-block;
323
- font-size: 28px;
324
- font-family: Arial, Helvetica, sans-serif;
325
- font-weight: bold;
326
- color: #fff;
327
- text-shadow: 0 0 2px #ff3d00, 0 0 1px #ff3d00, 0 0 1px #ff3d00;
328
- letter-spacing: 2px;
329
- position: relative;
505
+ display: inline-block;
506
+ font-size: 28px;
507
+ font-family: Arial, Helvetica, sans-serif;
508
+ font-weight: bold;
509
+ color: #fff;
510
+ text-shadow: 0 0 2px #ff3d00, 0 0 1px #ff3d00, 0 0 1px #ff3d00;
511
+ letter-spacing: 2px;
512
+ position: relative;
330
513
  }
331
514
 
332
515
  .loadings::after {
333
- content: "Loading";
334
- position: absolute;
335
- left: 0;
336
- top: 0;
337
- color: #ff3d00;
338
- width: 0%;
339
- height: 100%;
340
- overflow: hidden;
341
- animation: loading-animation 6s linear infinite;
516
+ content: "Loading";
517
+ position: absolute;
518
+ left: 0;
519
+ top: 0;
520
+ color: #ff3d00;
521
+ width: 0%;
522
+ height: 100%;
523
+ overflow: hidden;
524
+ animation: loading-animation 6s linear infinite;
342
525
  }
343
526
 
344
527
  @keyframes loading-animation {
345
- 0% {
346
- width: 0;
347
- }
528
+ 0% {
529
+ width: 0;
530
+ }
348
531
 
349
- 100% {
350
- width: 100%;
351
- }
532
+ 100% {
533
+ width: 100%;
534
+ }
352
535
  }
353
536
  </style>
package/src/index.js CHANGED
@@ -81,7 +81,7 @@ function install(app) {
81
81
  }
82
82
 
83
83
  export default {
84
- version: '1.32.286',
84
+ version: '1.32.288',
85
85
  install,
86
86
  Calendar,
87
87
  Message,