zydx-plus 1.32.296 → 1.32.297

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.296",
3
+ "version": "1.32.297",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1149,6 +1149,7 @@ li {
1149
1149
  .z-editor {
1150
1150
  border: 1px solid rgba(204, 204, 204, 1);
1151
1151
  position: relative;
1152
+ width: 100%;
1152
1153
  }
1153
1154
 
1154
1155
  .editor-header {
@@ -1251,7 +1252,7 @@ li {
1251
1252
  .editing-cont {
1252
1253
  padding: 120px 0 66px 0;
1253
1254
  box-sizing: border-box;
1254
- max-width: 794px;
1255
+ max-width: 594px;
1255
1256
  min-height: 700px;
1256
1257
  margin: 0 auto;
1257
1258
  }
@@ -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>
@@ -143,6 +143,9 @@ export default {
143
143
  })
144
144
  })
145
145
  },
146
+ annexHtml(x) {
147
+ return json2html({node: "root", child: typeof x === 'string' ? JSON.parse(x) : x})
148
+ },
146
149
  init() {
147
150
  const val = JSON.parse(JSON.stringify(this.data))
148
151
  this.value = val.map((item, index) => { // 转换html
@@ -152,12 +155,6 @@ export default {
152
155
  item.open = item.open !== undefined ? item.open : true
153
156
  item.error = item.error !== undefined ? item.error : false
154
157
  item.subject = item.subject !== undefined ? item.subject : true
155
- if (item.alist) {
156
- item.alist.map(x => {
157
- x.annexContent = json2html({node: "root", child: typeof x.annexContent === 'string' ? JSON.parse(x.annexContent) : x.annexContent})
158
- return x
159
- })
160
- }
161
158
  if (item.testKey) {
162
159
  item.testKey = typeof item.testKey === 'string' ? JSON.parse(item.testKey) : item.testKey
163
160
  let judge = item?.judgeAnswer
@@ -65,7 +65,7 @@
65
65
  <div v-for="(it,ind) in item.alist">
66
66
  <div v-if="it.annexType === '0'">
67
67
  <div class="subject-html-title">{{ titleText }}{{ ind + 1 }}</div>
68
- <div class="subject-html-cont" v-html="it.annexContent"></div>
68
+ <div class="subject-html-cont" v-html="annexHtml(it.annexContent)"></div>
69
69
  </div>
70
70
  </div>
71
71
  </div>
@@ -287,6 +287,9 @@ export default {
287
287
  }
288
288
  e.onClick(e,d)
289
289
  },
290
+ annexHtml(x) {
291
+ return json2html({node: "root", child: typeof x === 'string' ? JSON.parse(x) : x})
292
+ },
290
293
  init() {
291
294
  this.value = JSON.parse(JSON.stringify(this.data))
292
295
  this.value.map((item, index) => { // 转换html
@@ -299,12 +302,6 @@ export default {
299
302
  item.review = item.review !== undefined ? item.review : true
300
303
  item.subject = item.subject !== undefined ? item.subject : true
301
304
  item.error = item.error !== undefined ? item.error : false
302
- if (item.alist) {
303
- item.alist.map(x => {
304
- x.annexContent = json2html({node: "root", child: typeof x.annexContent === 'string' ? JSON.parse(x.annexContent) : x.annexContent})
305
- return x
306
- })
307
- }
308
305
  if (item.testKey) {
309
306
  item.testKey = typeof item.testKey === 'string' ? JSON.parse(item.testKey) : item.testKey
310
307
  let judge = item?.judgeAnswer
package/src/index.js CHANGED
@@ -81,7 +81,7 @@ function install(app) {
81
81
  }
82
82
 
83
83
  export default {
84
- version: '1.32.296',
84
+ version: '1.32.297',
85
85
  install,
86
86
  Calendar,
87
87
  Message,