zydx-plus 1.32.284 → 1.32.285
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
|
@@ -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]
|
|
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]
|
|
402
|
+
if (v[i].content[0]?.length > 10) {
|
|
403
403
|
return true
|
|
404
404
|
}
|
|
405
405
|
}
|