zydx-plus 1.35.555 → 1.35.557
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/editor/src/editor.vue +10 -8
- package/src/components/editor2/src/editor.vue +5 -4
- 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
|
@@ -986,13 +986,14 @@ export default {
|
|
|
986
986
|
// this.editor?.commands.setContent(json2html({node: "root", child: (e === undefined || e === null) ? [] : e}))
|
|
987
987
|
this.editor?.commands.setContent(dataHtml)
|
|
988
988
|
if (this.readOnly) {
|
|
989
|
-
|
|
990
|
-
|
|
989
|
+
// lxq 25.7.14
|
|
990
|
+
// if (this.page) this.editableShow = true
|
|
991
|
+
// setTimeout(() => {
|
|
991
992
|
if (this.page) {
|
|
992
993
|
this.editableShow = false
|
|
993
994
|
this.readOnlyPage()
|
|
994
995
|
}
|
|
995
|
-
}, 300)
|
|
996
|
+
// }, 300)
|
|
996
997
|
}
|
|
997
998
|
setTimeout(() => {
|
|
998
999
|
this.init = true
|
|
@@ -1005,20 +1006,21 @@ export default {
|
|
|
1005
1006
|
},
|
|
1006
1007
|
readOnly: {
|
|
1007
1008
|
handler: function (e) {
|
|
1008
|
-
|
|
1009
|
+
// lxq 25.7.14
|
|
1010
|
+
// let time = setInterval(() => {
|
|
1009
1011
|
if (this.editor) { // 没有时间以后 停止定时器
|
|
1010
1012
|
this.editor.setOptions({editable: !e})
|
|
1011
1013
|
if (this.page) {
|
|
1012
|
-
setTimeout(() => {
|
|
1014
|
+
// setTimeout(() => {
|
|
1013
1015
|
this.editableShow = !e
|
|
1014
1016
|
if (e) {
|
|
1015
1017
|
this.readOnlyPage() // 只读分页
|
|
1016
1018
|
}
|
|
1017
|
-
}, 300)
|
|
1019
|
+
// }, 300)
|
|
1018
1020
|
}
|
|
1019
|
-
clearInterval(time) //停止计时器,清除定时器
|
|
1021
|
+
// clearInterval(time) //停止计时器,清除定时器
|
|
1020
1022
|
}
|
|
1021
|
-
}, 10)
|
|
1023
|
+
// }, 10)
|
|
1022
1024
|
},
|
|
1023
1025
|
deep: true,
|
|
1024
1026
|
immediate: true
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
:style="{color: (voiceStatus)? '#4B0C77' :'#000'}">{{ voiceStatus ? '关闭语音' : '语音输入' }}
|
|
27
27
|
</button>
|
|
28
28
|
<button v-if='isShowAiTool' class="buts" @click="showAi">AI助手</button>
|
|
29
|
-
<button v-if="butText !== '' && readOnly" class="buts" @click="complete">{{ butText }}</button>
|
|
30
29
|
<slot name='toolBtn'></slot>
|
|
30
|
+
<button v-if="butText !== '' && readOnly" class="buts" @click="complete">{{ butText }}</button>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
<zydx-chat v-model='isShowAi'></zydx-chat>
|
|
@@ -1073,7 +1073,7 @@ export default {
|
|
|
1073
1073
|
|
|
1074
1074
|
.ed-head {
|
|
1075
1075
|
display: flex;
|
|
1076
|
-
justify-content:
|
|
1076
|
+
justify-content: right;
|
|
1077
1077
|
flex-wrap: wrap;
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
@@ -1097,12 +1097,13 @@ export default {
|
|
|
1097
1097
|
float: right;
|
|
1098
1098
|
}
|
|
1099
1099
|
.ed-title {
|
|
1100
|
-
min-width: 120px;
|
|
1101
1100
|
flex: 1;
|
|
1102
1101
|
text-align: left;
|
|
1103
1102
|
font-size: 16px;
|
|
1104
|
-
min-width:
|
|
1103
|
+
min-width: 80px;
|
|
1105
1104
|
line-height: 24px;
|
|
1105
|
+
position: relative;
|
|
1106
|
+
top: -2px;
|
|
1106
1107
|
}
|
|
1107
1108
|
|
|
1108
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) {
|