zydx-plus 1.35.555 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.555",
3
+ "version": "1.35.556",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -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: center;
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: 100px;
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
@@ -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.svg" alt="" />
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: 100%;
1701
- height: 100%;
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: #4B0C77;
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
@@ -175,7 +175,7 @@
175
175
  }
176
176
  :deep(.custom-underline){
177
177
  font-style: normal;
178
- background-color: rgba(0,0,0,0.1);
178
+ /*background-color: rgba(0,0,0,0.1);*/
179
179
  border-bottom: 1px dashed #FF0000;
180
180
  }
181
181
  .link{
@@ -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.2)':'rgba(0,0,0,0.1)'
414
+ name[i].style.backgroundColor = back?'rgba(0,0,0,0.1)':''
415
415
  }
416
416
  },
417
417
  classBackDel(name) {
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.555',
92
+ version: '1.35.556',
93
93
  install,
94
94
  Calendar,
95
95
  Message,