zydx-plus 1.35.554 → 1.35.556
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 +1 -1
- package/src/components/chat/src/chat.vue +1 -1
- package/src/components/editor/src/editor.vue +4 -1
- package/src/components/editor2/src/editor.vue +8 -6
- package/src/components/flip/img/dingwei.png +0 -0
- package/src/components/flip/img/huabi.png +0 -0
- package/src/components/flip/img/sanjiao.png +0 -0
- package/src/components/flip/src/flip.vue +21 -4
- package/src/components/sketchpad/src/sketchpad.vue +2 -0
- package/src/components/tagging/src/tagging.css +1 -1
- package/src/components/tagging/src/tagging.vue +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -341,7 +341,7 @@ export default {
|
|
|
341
341
|
url: '/zydx/voice/getBaiduToken',
|
|
342
342
|
method: 'post',
|
|
343
343
|
headers: {
|
|
344
|
-
'Authorization': localStorage.getItem('sessionId'),
|
|
344
|
+
'Authorization': localStorage.getItem('sessionId') || sessionStorage.getItem('sessionId'),
|
|
345
345
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
346
346
|
},
|
|
347
347
|
params: {
|
|
@@ -873,7 +873,8 @@ export default {
|
|
|
873
873
|
headers: {
|
|
874
874
|
Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
|
|
875
875
|
},
|
|
876
|
-
server: '/zydx/lessonResource/editOfficeFile',
|
|
876
|
+
server: '/zydx/open/function/lessonResource/editOfficeFile',
|
|
877
|
+
// server: '/zydx/lessonResource/editOfficeFile',
|
|
877
878
|
}
|
|
878
879
|
}
|
|
879
880
|
},
|
|
@@ -2008,6 +2009,7 @@ export default {
|
|
|
2008
2009
|
enlSee() {
|
|
2009
2010
|
this.$emit('enlSee', this.encIndex)
|
|
2010
2011
|
let id = this.encIndex.signId.split('u-').join('')
|
|
2012
|
+
console.log('interpositionData',this.interpositionData);
|
|
2011
2013
|
this.interpositionData.forEach(item => {
|
|
2012
2014
|
if (item.id === id) {
|
|
2013
2015
|
item.isShow = true
|
|
@@ -2587,6 +2589,7 @@ export default {
|
|
|
2587
2589
|
fileName: name,
|
|
2588
2590
|
url: url
|
|
2589
2591
|
}
|
|
2592
|
+
console.log('11111',dataInfo)
|
|
2590
2593
|
//linkCourseware
|
|
2591
2594
|
if (v === 'linkCourseware') {
|
|
2592
2595
|
let officeInfo = this.getOffice
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
</button>
|
|
28
28
|
<button v-if='isShowAiTool' class="buts" @click="showAi">AI助手</button>
|
|
29
29
|
<slot name='toolBtn'></slot>
|
|
30
|
+
<button v-if="butText !== '' && readOnly" class="buts" @click="complete">{{ butText }}</button>
|
|
30
31
|
</div>
|
|
31
32
|
</div>
|
|
32
33
|
<zydx-chat v-model='isShowAi'></zydx-chat>
|
|
@@ -85,9 +86,9 @@
|
|
|
85
86
|
<svg style="cursor: pointer" @click="close" t="1698630749910" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4415" width="20" height="20"><path d="M726.976 274.432a16 16 0 0 0-22.656 0L512 466.752l-192.32-192.32a16 16 0 0 0-22.624 0l-22.656 22.624a16 16 0 0 0 0 22.624l192.32 192.32-192.32 192.32a16 16 0 0 0 0 22.656l22.656 22.624a16 16 0 0 0 22.624 0l192.32-192.32 192.32 192.32a16 16 0 0 0 22.656 0l22.624-22.624a16 16 0 0 0 0-22.624L557.28 512l192.32-192.352a16 16 0 0 0 0-22.624l-22.624-22.624z" fill="#fff" p-id="4416"></path></svg>
|
|
86
87
|
</div>
|
|
87
88
|
</div>
|
|
88
|
-
<div class="editor-but" v-if="butText !== '' && readOnly"
|
|
89
|
-
<button class="buts" @click="complete">{{ butText }}</button
|
|
90
|
-
</div
|
|
89
|
+
<!-- <div class="editor-but" v-if="butText !== '' && readOnly">-->
|
|
90
|
+
<!-- <button class="buts" @click="complete">{{ butText }}</button>-->
|
|
91
|
+
<!-- </div>-->
|
|
91
92
|
<div class="enclosure" v-if="uploadAttData.length > 0 && enclosureShow">
|
|
92
93
|
<p :style="enclosureStyle">{{ enclosureText }}</p>
|
|
93
94
|
<div class="enclosure-list" v-for="(item,index) in uploadAttData">
|
|
@@ -1072,7 +1073,7 @@ export default {
|
|
|
1072
1073
|
|
|
1073
1074
|
.ed-head {
|
|
1074
1075
|
display: flex;
|
|
1075
|
-
justify-content:
|
|
1076
|
+
justify-content: right;
|
|
1076
1077
|
flex-wrap: wrap;
|
|
1077
1078
|
}
|
|
1078
1079
|
|
|
@@ -1096,12 +1097,13 @@ export default {
|
|
|
1096
1097
|
float: right;
|
|
1097
1098
|
}
|
|
1098
1099
|
.ed-title {
|
|
1099
|
-
min-width: 120px;
|
|
1100
1100
|
flex: 1;
|
|
1101
1101
|
text-align: left;
|
|
1102
1102
|
font-size: 16px;
|
|
1103
|
-
min-width:
|
|
1103
|
+
min-width: 80px;
|
|
1104
1104
|
line-height: 24px;
|
|
1105
|
+
position: relative;
|
|
1106
|
+
top: -2px;
|
|
1105
1107
|
}
|
|
1106
1108
|
|
|
1107
1109
|
.enclosure-list {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<img @mouseover="showSingleText=true" @mouseout="showSingleText=false" src="../img/single-page.png" alt="" title="单页查看">
|
|
15
15
|
</div>
|
|
16
16
|
<div class="full-screen-img" v-if="!doublePage&&isShowPen" @click.stop="showPen">
|
|
17
|
+
<!-- <div class="full-screen-title" style="" v-if="showSingleText">单页查看</div>-->
|
|
17
18
|
<!-- <div class="full-screen-title" style="" v-if="showSingleText">单页查看</div>-->
|
|
18
19
|
<i class="iconfont zydx-huabi1" title="笔迹"/>
|
|
19
20
|
</div>
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
<div class="annotationLayer" ref="annotationLayer">
|
|
89
90
|
<template v-for="(item,index) in annotations">
|
|
90
91
|
<div :style="styleAnnotation(item)" class="magnifier" v-if="item.type === 'tag'">
|
|
91
|
-
<img @click.stop="magnifierTap($event,item)" src="../img/dingwei.
|
|
92
|
+
<img @click.stop="magnifierTap($event,item)" src="../img/dingwei.png" alt="" />
|
|
92
93
|
<div class="magnifier-list" v-if="item.show" :style="item.style">
|
|
93
94
|
<div class="magnifier-head">
|
|
94
95
|
<div class="magnifier-title">拓展阅读</div>
|
|
@@ -166,12 +167,14 @@ import * as PdfJs from 'pdfjs-dist'
|
|
|
166
167
|
import "pdfjs-dist/build/pdf.worker.mjs";
|
|
167
168
|
import Range from "../../tagging/src/range";
|
|
168
169
|
|
|
170
|
+
import img from '../img/huabi.png'
|
|
169
171
|
let pdfs = {};
|
|
170
172
|
|
|
171
173
|
export default {
|
|
172
174
|
name: "zydx-flip",
|
|
173
175
|
data() {
|
|
174
176
|
return {
|
|
177
|
+
mouseImg:img,
|
|
175
178
|
pdfPages: 0,
|
|
176
179
|
imgArr: '',
|
|
177
180
|
hei: 0,
|
|
@@ -405,6 +408,19 @@ export default {
|
|
|
405
408
|
},
|
|
406
409
|
deep: true,
|
|
407
410
|
immediate: true
|
|
411
|
+
},
|
|
412
|
+
state:{
|
|
413
|
+
handler: function (val){
|
|
414
|
+
this.$nextTick(()=>{
|
|
415
|
+
if(val==='brush'){
|
|
416
|
+
this.$refs.wrapCan.setAttribute('style',`cursor:url(${this.mouseImg}) 0 16, auto;`)
|
|
417
|
+
}else {
|
|
418
|
+
this.$refs.wrapCan.style.cursor = "auto"
|
|
419
|
+
}
|
|
420
|
+
})
|
|
421
|
+
},
|
|
422
|
+
deep: true,
|
|
423
|
+
immediate: true
|
|
408
424
|
}
|
|
409
425
|
},
|
|
410
426
|
emits: ['flip','annotationTap', 'annotationsSend', 'empty'],
|
|
@@ -1697,9 +1713,10 @@ export default {
|
|
|
1697
1713
|
cursor: pointer;
|
|
1698
1714
|
}
|
|
1699
1715
|
.magnifier>img{
|
|
1700
|
-
width:
|
|
1701
|
-
height:
|
|
1716
|
+
width: 80% !important;
|
|
1717
|
+
height: 80% !important;
|
|
1702
1718
|
display: block;
|
|
1719
|
+
margin: 0 auto;
|
|
1703
1720
|
}
|
|
1704
1721
|
.magnifier-list{
|
|
1705
1722
|
position: absolute;
|
|
@@ -1763,7 +1780,7 @@ export default {
|
|
|
1763
1780
|
border-radius: 20px;
|
|
1764
1781
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
|
|
1765
1782
|
padding: 10px;
|
|
1766
|
-
background-color: #
|
|
1783
|
+
background-color: #DEDCDC;
|
|
1767
1784
|
cursor: pointer;
|
|
1768
1785
|
transform: scaleX(-1);
|
|
1769
1786
|
}
|
|
@@ -9,6 +9,7 @@ import {createRoot} from 'react-dom/client'
|
|
|
9
9
|
import {AssetRecordType,createShapeId, Tldraw} from 'tldraw'
|
|
10
10
|
import 'tldraw/tldraw.css'
|
|
11
11
|
import * as buffer from "buffer";
|
|
12
|
+
// import img from "@/components/flip/img/huabi.png";
|
|
12
13
|
|
|
13
14
|
if (typeof window.Buffer === "undefined") { // 判断当前环境是否有Buffer对象
|
|
14
15
|
window.Buffer = buffer.Buffer; // Buffer对象不存在则创建导入的buffer
|
|
@@ -79,6 +80,7 @@ export default {
|
|
|
79
80
|
name: "zydx-sketchpad",
|
|
80
81
|
data() {
|
|
81
82
|
return {
|
|
83
|
+
// mouseImg:img,
|
|
82
84
|
shapeArr:[],
|
|
83
85
|
interval:null
|
|
84
86
|
// editor: null
|
|
@@ -411,7 +411,7 @@ export default {
|
|
|
411
411
|
classGuidance(name,state,back) {
|
|
412
412
|
for (let i = 0; i < name.length; i++) {
|
|
413
413
|
name[i].style.borderBottom = state
|
|
414
|
-
name[i].style.backgroundColor = back?'rgba(0,0,0,0.
|
|
414
|
+
name[i].style.backgroundColor = back?'rgba(0,0,0,0.1)':''
|
|
415
415
|
}
|
|
416
416
|
},
|
|
417
417
|
classBackDel(name) {
|