zydx-plus 1.30.146 → 1.30.147
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
|
@@ -1999,6 +1999,30 @@ let buttonNames = {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
2001
|
},
|
|
2002
|
+
resource_Interrogation: {
|
|
2003
|
+
actionName: '诘问资源',
|
|
2004
|
+
buttonList: {
|
|
2005
|
+
0: {
|
|
2006
|
+
headLevel: {
|
|
2007
|
+
default: "demand",
|
|
2008
|
+
demand: '回答要求',
|
|
2009
|
+
resourceIndex: '教学项目',
|
|
2010
|
+
review: '回答点评',
|
|
2011
|
+
analyse: '回答分析',
|
|
2012
|
+
countermeasure: '教学对策'
|
|
2013
|
+
},
|
|
2014
|
+
otherLevel: {
|
|
2015
|
+
default: "singletonClass",
|
|
2016
|
+
singletonClass: this.getCurrentPrefix(item) + '项目',
|
|
2017
|
+
allClass: this.getPrefix(item) + '项目'
|
|
2018
|
+
},
|
|
2019
|
+
lowLevel: {
|
|
2020
|
+
default: "singletonClass",
|
|
2021
|
+
singletonClass: this.getCurrentPrefix(item) + '项目'
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2002
2026
|
resource_lesson020: {
|
|
2003
2027
|
actionName: '逻辑思维',
|
|
2004
2028
|
buttonList: {
|
|
@@ -2425,6 +2449,29 @@ let buttonNames = {
|
|
|
2425
2449
|
}
|
|
2426
2450
|
}
|
|
2427
2451
|
},
|
|
2452
|
+
lesson_resource_list: {
|
|
2453
|
+
actionName: '资源列表',
|
|
2454
|
+
buttonList: {
|
|
2455
|
+
0: {
|
|
2456
|
+
headLevel: {
|
|
2457
|
+
default: "btnIndex1",
|
|
2458
|
+
btnIndex1: '演示阅读',
|
|
2459
|
+
btnIndex2: '互动操作',
|
|
2460
|
+
btnIndex3: '深度拓展'
|
|
2461
|
+
},
|
|
2462
|
+
otherLevel: {
|
|
2463
|
+
default: "btnIndex1",
|
|
2464
|
+
btnIndex1: '演示阅读',
|
|
2465
|
+
btnIndex2: '互动操作'
|
|
2466
|
+
},
|
|
2467
|
+
lowLevel: {
|
|
2468
|
+
default: "btnIndex1",
|
|
2469
|
+
btnIndex1: '演示阅读',
|
|
2470
|
+
btnIndex2: '互动操作'
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
},
|
|
2428
2475
|
}[this.actionId];
|
|
2429
2476
|
},
|
|
2430
2477
|
// 获取前缀内容
|
|
@@ -98,6 +98,37 @@ export default defineComponent({
|
|
|
98
98
|
window.closeMaker = this.closeMaker
|
|
99
99
|
},
|
|
100
100
|
methods: {
|
|
101
|
+
headerData(data,lens,size,label) {
|
|
102
|
+
let onePage = ''
|
|
103
|
+
let numArr = 0
|
|
104
|
+
let page = 0
|
|
105
|
+
const len = this.thatLenText(data.children,lens)
|
|
106
|
+
console.log(len)
|
|
107
|
+
const num = len.length === 0? 1 : len.length
|
|
108
|
+
const textAlign = data.textAlign? data.textAlign : 'left'
|
|
109
|
+
if(label === 1) onePage += `<h1 style="margin: 5px 0;text-align: ${textAlign};">`
|
|
110
|
+
if(label === 2) onePage += `<h2 style="margin: 5px 0;text-align: ${textAlign};">`
|
|
111
|
+
if(label === 3) onePage += `<h3 style="margin: 5px 0;text-align: ${textAlign};">`
|
|
112
|
+
if(label === 4) onePage += `<h4 style="margin: 5px 0;text-align: ${textAlign};">`
|
|
113
|
+
if(label === 5) onePage += `<h5 style="margin: 5px 0;text-align: ${textAlign};">`
|
|
114
|
+
for(let j=0; j<data.children.length; j++) {
|
|
115
|
+
const fontSize = data.children[j].fontSize? data.children[j].fontSize : ''+ size +'px'
|
|
116
|
+
numArr = parseInt(fontSize) * 1.5
|
|
117
|
+
const color = data.children[j].color? data.children[j].color : '#000'
|
|
118
|
+
if(data.children[j].sup) {
|
|
119
|
+
onePage += `<span style="display:inline-block;height: ${numArr}px;line-height: ${numArr}px;font-size: ${fontSize};color: ${color}"><sup>${data.children[j].text}</sup></span>`
|
|
120
|
+
}else {
|
|
121
|
+
onePage += `<span style="display:inline-block;height: ${numArr}px;line-height: ${numArr}px;font-size: ${fontSize};color: ${color}">${data.children[j].text}</span>`
|
|
122
|
+
}
|
|
123
|
+
page += (numArr + 10)*num
|
|
124
|
+
}
|
|
125
|
+
if(label === 1) onePage += `</h1>`
|
|
126
|
+
if(label === 2) onePage += `</h2>`
|
|
127
|
+
if(label === 3) onePage += `</h3>`
|
|
128
|
+
if(label === 4) onePage += `</h4>`
|
|
129
|
+
if(label === 5) onePage += `</h5>`
|
|
130
|
+
return {onePages: onePage,pages: page}
|
|
131
|
+
},
|
|
101
132
|
readOnlyPage() {
|
|
102
133
|
this.htmlArr = []
|
|
103
134
|
let onePage = ''
|
|
@@ -110,6 +141,31 @@ export default defineComponent({
|
|
|
110
141
|
onePage = ''
|
|
111
142
|
page = 0
|
|
112
143
|
}
|
|
144
|
+
if(data[i].type === 'header1') {
|
|
145
|
+
const { onePages,pages } = this.headerData(data[i],38,32,1)
|
|
146
|
+
onePage += onePages
|
|
147
|
+
page += pages
|
|
148
|
+
}
|
|
149
|
+
if(data[i].type === 'header2') {
|
|
150
|
+
const { onePages,pages } = this.headerData(data[i],60,23,2)
|
|
151
|
+
onePage += onePages
|
|
152
|
+
page += pages
|
|
153
|
+
}
|
|
154
|
+
if(data[i].type === 'header3') {
|
|
155
|
+
const { onePages,pages } = this.headerData(data[i],78,17,3)
|
|
156
|
+
onePage += onePages
|
|
157
|
+
page += pages
|
|
158
|
+
}
|
|
159
|
+
if(data[i].type === 'header4') {
|
|
160
|
+
const { onePages,pages } = this.headerData(data[i],92,14,4)
|
|
161
|
+
onePage += onePages
|
|
162
|
+
page += pages
|
|
163
|
+
}
|
|
164
|
+
if(data[i].type === 'header5') {
|
|
165
|
+
const { onePages,pages } = this.headerData(data[i],106,12,5)
|
|
166
|
+
onePage += onePages
|
|
167
|
+
page += pages
|
|
168
|
+
}
|
|
113
169
|
if(data[i].type === 'paragraph') {
|
|
114
170
|
let numArr = 0
|
|
115
171
|
const len = this.thatLenText(data[i].children,92)
|
|
@@ -255,11 +311,6 @@ export default defineComponent({
|
|
|
255
311
|
uploadImage: props.uploadImage,
|
|
256
312
|
uploadAttachment: props.uploadAttachment
|
|
257
313
|
}
|
|
258
|
-
// hoverbarKeys: {
|
|
259
|
-
// attachment: {
|
|
260
|
-
// menuKeys: ['menu4'],
|
|
261
|
-
// },
|
|
262
|
-
// },
|
|
263
314
|
}
|
|
264
315
|
}
|
|
265
316
|
})
|
|
@@ -281,7 +332,6 @@ export default defineComponent({
|
|
|
281
332
|
}
|
|
282
333
|
return -1
|
|
283
334
|
}
|
|
284
|
-
|
|
285
335
|
return {opts, handle, formData, syncContent}
|
|
286
336
|
}
|
|
287
337
|
})
|
|
@@ -321,11 +371,6 @@ export default defineComponent({
|
|
|
321
371
|
border-right: 1px solid #d9d9d9;
|
|
322
372
|
}
|
|
323
373
|
|
|
324
|
-
/*工具栏剧中显示*/
|
|
325
|
-
.w-e-toolbar {
|
|
326
|
-
justify-content: center !important;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
374
|
/*编辑器样式*/
|
|
330
375
|
.editable {
|
|
331
376
|
width: 100%;
|
|
@@ -355,6 +400,25 @@ export default defineComponent({
|
|
|
355
400
|
:deep(.w-e-text-container p) {
|
|
356
401
|
margin: 5px 0;
|
|
357
402
|
}
|
|
403
|
+
:deep(.w-e-text-container h1) {
|
|
404
|
+
margin: 5px 0;
|
|
405
|
+
}
|
|
406
|
+
:deep(.w-e-text-container h2) {
|
|
407
|
+
margin: 5px 0;
|
|
408
|
+
}
|
|
409
|
+
:deep(.w-e-text-container h3) {
|
|
410
|
+
margin: 5px 0;
|
|
411
|
+
}
|
|
412
|
+
:deep(.w-e-text-container h4) {
|
|
413
|
+
margin: 5px 0;
|
|
414
|
+
}
|
|
415
|
+
:deep(.w-e-text-container h5) {
|
|
416
|
+
margin: 5px 0;
|
|
417
|
+
}
|
|
418
|
+
:deep(.w-e-text-container h6) {
|
|
419
|
+
margin: 5px 0;
|
|
420
|
+
}
|
|
421
|
+
|
|
358
422
|
|
|
359
423
|
:deep(.w-e-text-placeholder) {
|
|
360
424
|
top: 6px;
|