zydx-plus 1.32.284 → 1.32.286

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.284",
3
+ "version": "1.32.286",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -2,7 +2,8 @@
2
2
  <div class="choice" v-if="isShow">
3
3
  <div class="choice-title">
4
4
  <div class="choice-title-left">
5
- <span><i>*</i>{{ title }}:</span>
5
+ <!-- <span><i>*</i>{{ title }}:</span>-->
6
+ <span>{{ title }}:</span>
6
7
  <em>({{ text }})</em>
7
8
  </div>
8
9
  <div class="choice-title-right">
@@ -304,4 +305,4 @@ export default {
304
305
  height: 21px;
305
306
  display: inline-block;
306
307
  }
307
- </style>
308
+ </style>
@@ -20,7 +20,7 @@
20
20
  <div v-for="(it,ind) in item.alist">
21
21
  <div v-if="it.annexType === '0'">
22
22
  <div class="subject-html-title">{{ titleText }}{{ ind + 1 }}</div>
23
- <div class="subject-html-cont" v-html="it.annexContent"></div>
23
+ <div class="subject-html-cont" v-html="annexHtml(it.annexContent)"></div>
24
24
  </div>
25
25
  </div>
26
26
  </div>
@@ -122,7 +122,10 @@ export default {
122
122
  customButTap(e,d) {
123
123
  if(e.key === 'option') d.open = !d.open
124
124
  if(e.butStart) e.active = !e.active
125
- this.$emit('butChange',d)
125
+ this.$emit('butChange',e,d)
126
+ },
127
+ annexHtml(x) {
128
+ return json2html({node: "root", child: typeof x === 'string' ? JSON.parse(x) : x})
126
129
  },
127
130
  init() {
128
131
  const val = JSON.parse(JSON.stringify(this.data))
@@ -133,12 +136,6 @@ export default {
133
136
  item.open = item.open !== undefined ? item.open : true
134
137
  item.error = item.error !== undefined ? item.error : false
135
138
  item.subject = item.subject !== undefined ? item.subject : true
136
- if (item.alist) {
137
- item.alist.map(x => {
138
- x.annexContent = json2html({node: "root", child: JSON.parse(x.annexContent)})
139
- return x
140
- })
141
- }
142
139
  if (item.testKey) {
143
140
  item.testKey = typeof item.testKey === 'string' ? JSON.parse(item.testKey) : item.testKey
144
141
  let judge = item?.judgeAnswer
@@ -209,7 +206,7 @@ export default {
209
206
  styleText(v) {
210
207
  if (!v || v === 'null') return
211
208
  for (let i = 0; i < v.length; i++) {
212
- if (v[i].content[0].length > 10) {
209
+ if (v[i].content[0]?.length > 10) {
213
210
  return true
214
211
  }
215
212
  }
@@ -122,7 +122,7 @@
122
122
  </tr>
123
123
  </table>
124
124
  </div>
125
- <slot></slot>
125
+ <slot name="content" :row="item"></slot>
126
126
  </div>
127
127
  </div>
128
128
  </div>
@@ -399,7 +399,7 @@ export default {
399
399
  styleText(v) {
400
400
  if (!v || v === 'null') return
401
401
  for (let i = 0; i < v.length; i++) {
402
- if (v[i].content[0].length > 10) {
402
+ if (v[i].content[0]?.length > 10) {
403
403
  return true
404
404
  }
405
405
  }
package/src/index.js CHANGED
@@ -81,7 +81,7 @@ function install(app) {
81
81
  }
82
82
 
83
83
  export default {
84
- version: '1.32.284',
84
+ version: '1.32.286',
85
85
  install,
86
86
  Calendar,
87
87
  Message,