zydx-plus 1.32.202 → 1.32.203

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.202",
3
+ "version": "1.32.203",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -360,6 +360,11 @@ export default {
360
360
  let pHeight = 0
361
361
  let html = ''
362
362
  for (let i = 0; i < data.length; i++) {
363
+ if(data[i].className === 'custom-link') { // 分割线
364
+ pHeight += 21
365
+ html += data[i].outerHTML
366
+ continue
367
+ }
363
368
  if(data[i].firstChild.localName === 'img') {
364
369
  const img = data[i].firstChild
365
370
  const imgHeight = img.offsetHeight
@@ -113,10 +113,10 @@ export default {
113
113
  if(item.testKey) {
114
114
  item.testKey = JSON.parse(item.testKey).map(x => {
115
115
  if(this.ques(item.quesType)) { // 判断是否单选
116
- x.checked = x.index === item?.answer;
116
+ x.checked = x.index === item?.judgeAnswer; //答案
117
117
  }else {
118
- for(let i=0; i<item?.answer?.length; i++) {
119
- if(x.index === item.answer[i]) {
118
+ for(let i=0; i<item?.judgeAnswer?.length; i++) {
119
+ if(x.index === item.judgeAnswer[i]) {
120
120
  x.checked = true
121
121
  break
122
122
  }else {
@@ -148,7 +148,7 @@ export default {
148
148
  deep: true
149
149
  }
150
150
  },
151
- emits: ['change','modify','del','changeAll','replaceData','choiceData','answer'],
151
+ emits: ['change','modify','del','changeAll','replaceData','choiceData','judgeAnswer'],
152
152
  methods: {
153
153
  answerChange(e,v,id) {
154
154
  let answerArr = []
@@ -158,9 +158,9 @@ export default {
158
158
  answerArr.push(v.testKey[index].index)
159
159
  }
160
160
  })
161
- this.$emit('answer',{
161
+ this.$emit('judgeAnswer',{
162
162
  ...v,
163
- answer: this.ques(v.quesType)? answerArr[0]: answerArr
163
+ judgeAnswer: this.ques(v.quesType)? answerArr[0]: answerArr
164
164
  })
165
165
  },
166
166
  checkboxChange(e,index) {
package/src/index.js CHANGED
@@ -77,7 +77,7 @@ function install(app) {
77
77
  }
78
78
 
79
79
  export default {
80
- version: '1.32.202',
80
+ version: '1.32.203',
81
81
  install,
82
82
  Calendar,
83
83
  Message,