zydx-plus 1.35.556 → 1.35.558

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.556",
3
+ "version": "1.35.558",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -2441,7 +2441,7 @@ let buttonNames = {
2441
2441
  lowLevel: {
2442
2442
  default: "viewResource",
2443
2443
  createResource: '创建思考',
2444
- viewResource: '列表',
2444
+ viewResource: '思考列表',
2445
2445
  // selectResource: '查找资源',
2446
2446
  }
2447
2447
  }
@@ -986,13 +986,15 @@ 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
- if (this.page) this.editableShow = true
990
- setTimeout(() => {
989
+ // lxq 25.7.14
990
+ // if (this.page) this.editableShow = true
991
+ // setTimeout(() => {
991
992
  if (this.page) {
992
993
  this.editableShow = false
994
+ console.log('editableShow',this.editableShow)
993
995
  this.readOnlyPage()
994
996
  }
995
- }, 300)
997
+ // }, 300)
996
998
  }
997
999
  setTimeout(() => {
998
1000
  this.init = true
@@ -1005,20 +1007,22 @@ export default {
1005
1007
  },
1006
1008
  readOnly: {
1007
1009
  handler: function (e) {
1008
- let time = setInterval(() => {
1010
+ // lxq 25.7.14
1011
+ // let time = setInterval(() => {
1009
1012
  if (this.editor) { // 没有时间以后 停止定时器
1010
1013
  this.editor.setOptions({editable: !e})
1011
1014
  if (this.page) {
1012
- setTimeout(() => {
1015
+ // setTimeout(() => {
1013
1016
  this.editableShow = !e
1014
1017
  if (e) {
1018
+ console.log('readOnlyPage',e)
1015
1019
  this.readOnlyPage() // 只读分页
1016
1020
  }
1017
- }, 300)
1021
+ // }, 300)
1018
1022
  }
1019
- clearInterval(time) //停止计时器,清除定时器
1023
+ // clearInterval(time) //停止计时器,清除定时器
1020
1024
  }
1021
- }, 10)
1025
+ // }, 10)
1022
1026
  },
1023
1027
  deep: true,
1024
1028
  immediate: true
@@ -2158,7 +2162,7 @@ export default {
2158
2162
  let max = this.wit * 1.6 - 186
2159
2163
  let pHeight = 0
2160
2164
  let html = ''
2161
- for (let i = 0; i < data.length; i++) {
2165
+ for (let i = 0; i < data?.length; i++) {
2162
2166
  if (data[i].className === 'custom-link') { // 分割线
2163
2167
  pHeight += 21
2164
2168
  html += data[i].outerHTML
@@ -176,7 +176,7 @@
176
176
  :deep(.custom-underline){
177
177
  font-style: normal;
178
178
  /*background-color: rgba(0,0,0,0.1);*/
179
- border-bottom: 1px dashed #FF0000;
179
+ border-bottom: 1px dashed #ccc;
180
180
  }
181
181
  .link{
182
182
  position: absolute;
@@ -6,7 +6,7 @@
6
6
  top: item.leftY + 'px',
7
7
  left: item.leftX + 'px',
8
8
  transform: 'rotate('+ item.angle +'deg)',
9
- 'border-bottom': (item.border)? '1px solid red' :'1px dashed red'
9
+ 'border-bottom': (item.border)? '1px solid red' :'1px dashed #ccc'
10
10
  }"></div>
11
11
  <div class="tagging-left">
12
12
  <div class="tagging-title">学生作品</div>
@@ -200,7 +200,6 @@ export default {
200
200
  // 当前页批注数据ID
201
201
  annDataID() {
202
202
  this.dataID = []
203
- console.log('childNodes',this.$refs.tagging.childNodes);
204
203
  this.$refs.tagging.childNodes.forEach(item => {
205
204
  this.childNode(item)
206
205
  })
@@ -350,7 +349,7 @@ export default {
350
349
  const className = document.getElementsByClassName('annotation-list')
351
350
  const className2 = document.getElementsByClassName(`${id}s`)
352
351
  const className3 = document.getElementsByClassName('custom-underline')
353
- this.classGuidance(className3,'1px dashed #FF0000',false)
352
+ this.classGuidance(className3,'1px dashed #ccc',false)
354
353
  this.classGuidance(className2,'1px solid #FF0000',true)
355
354
  for (let i = 0; i < className.length; i++) {
356
355
  className[i].style.border = '1px solid #ccc'
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.556',
92
+ version: '1.35.558',
93
93
  install,
94
94
  Calendar,
95
95
  Message,