zydx-plus 1.33.404 → 1.33.405
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
|
@@ -1202,7 +1202,7 @@ let buttonNames = {
|
|
|
1202
1202
|
},
|
|
1203
1203
|
lowLevel: {
|
|
1204
1204
|
default: "singletonClass",
|
|
1205
|
-
singletonClass: '
|
|
1205
|
+
singletonClass: '项目任务',
|
|
1206
1206
|
score: '项目成绩',
|
|
1207
1207
|
analysis: '统计分析',
|
|
1208
1208
|
assessment: '素养评估',
|
|
@@ -1222,7 +1222,7 @@ let buttonNames = {
|
|
|
1222
1222
|
},
|
|
1223
1223
|
lowLevel: {
|
|
1224
1224
|
default: "singletonClass",
|
|
1225
|
-
singletonClass: '
|
|
1225
|
+
singletonClass: '项目任务',
|
|
1226
1226
|
score: '项目成绩',
|
|
1227
1227
|
analysis: '统计分析',
|
|
1228
1228
|
assessment: '素养评估',
|
|
@@ -72,25 +72,21 @@ export function butJson(editor, data) {
|
|
|
72
72
|
<p data-signid="author" class="author" style="text-align: center;padding-bottom: 30px;"><span style="font-size: 14px; font-family: FangSong; color: rgb(0, 0, 0);">请在此处输入作者</span></p>
|
|
73
73
|
<p data-signid="abstract" class="abstract"><strong><span style="font-size: 14px; font-family: SimSun; color: rgb(0, 0, 0)">摘要:</span></strong> <span style="font-size: 14px; font-family: FangSong; color: rgb(0, 0, 0)">请在此处输入摘要文本...</span></p>
|
|
74
74
|
<p data-signid="keyword" class="keyword"><strong><span contenteditable="false" style="font-size: 14px; font-family: SimSun; color: rgb(0, 0, 0)">关键词:</span></strong> <span style="font-size: 14px; font-family: FangSong; color: rgb(0, 0, 0)"> 请在此处输入关键字...</span></p>
|
|
75
|
-
<p></p>
|
|
76
75
|
<p data-signid="text" class="indent"><span style="font-size: 14px; font-family: SimHei; color: rgb(0, 0, 0)">请在此处输入正文文本</span></p>
|
|
77
76
|
<p data-signid="title-1" class="title indent"><strong><span style="font-size: 16px; font-family: SimHei; color: rgb(0, 0, 0)">一、请在此处输入一级标题</span></strong></p>
|
|
78
77
|
<p data-signid="text" class="indent"><span style="font-size: 14px; font-family: SimHei; color: rgb(0, 0, 0)">请在此处输入正文文本</span></p>
|
|
79
78
|
<p data-signid="title-2" class="title indent"><strong><span style="font-size: 16px; font-family: SimH ei; color: rgb(0, 0, 0)">(一)请在此处输入二级标题</span></strong></p>
|
|
80
79
|
<p data-signid="text" class="indent"><span style="font-size: 14px; font-family: SimHei; color: rgb(0, 0, 0)">请在此处输入正文文本(复用格式建议直接复制粘贴段落)</span></p>
|
|
81
80
|
<p data-signid="splitLine" contenteditable="false" class="paging-line">分 页 线(保存文档时线下内容另起一页)</p>
|
|
82
|
-
<p></p>
|
|
83
81
|
<p data-signid="annotation" contenteditable="false" style="text-align: center;"><strong><span style="font-size: 24px; font-family: SimHei; color: rgb(0, 0, 0);">注释</span></strong></p>
|
|
84
|
-
<p contenteditable="false" class="author" style="text-align: center;padding-bottom: 30px;"><span style="font-size: 14px;font-weight: 700; color: rgba(0, 0, 0, 0.5);">(请在文中标识要注释的内容,此处将生成注释的序号而后需要作者填写注释内容)</span></p>
|
|
82
|
+
<p data-signid="annotation-1" contenteditable="false" class="author" style="text-align: center;padding-bottom: 30px;"><span style="font-size: 14px;font-weight: 700; color: rgba(0, 0, 0, 0.5);">(请在文中标识要注释的内容,此处将生成注释的序号而后需要作者填写注释内容)</span></p>
|
|
85
83
|
<p data-signid="a-l" class="text" contenteditable="false"><span style="font-size: 12px; font-family: FangSong;text-indent: 2em;">① 注释:是指解释字句的文字,也指用文字解释字句,可以是文字符号图片等多种形式。(当前文本只是示例展示,不会出现在保存的文本中。)</span></p>
|
|
86
84
|
<p data-signid="annotationSplitLine" contenteditable="false" class="paging-line">分 页 线(保存文档时线下内容另起一页)</p>
|
|
87
|
-
<p></p>
|
|
88
85
|
<p contenteditable="false" data-signId="reference" style="text-align: center;margin-bottom: 30px;"><span font-family: SimHei; style="font-weight: 700;font-size: 24px;">参考文献</span></p>
|
|
89
|
-
<p contenteditable="false" class="author" style="text-align: center;padding-bottom: 30px;"><span style="font-size: 14px;font-weight: 700; color: rgba(0, 0, 0, 0.5);">(请在文中标识要注释的内容,此处将生成注释的序号而后需要作者填写注释内容)</span></p>
|
|
86
|
+
<p contenteditable="false" data-signId="reference-1" class="author" style="text-align: center;padding-bottom: 30px;"><span style="font-size: 14px;font-weight: 700; color: rgba(0, 0, 0, 0.5);">(请在文中标识要注释的内容,此处将生成注释的序号而后需要作者填写注释内容)</span></p>
|
|
90
87
|
<p data-signid="r-l" class="text" contenteditable="false"><span style="font-size: 12px; font-family: FangSong;text-indent: 2em;"> [1] 孙品一.高校学报编辑工作现代化特征[C].中国高等学校自然科学学报研究会.科技编辑学论文集(2).北京:北京师范大学出版社,1998:10-22. (当前文本只是示例展示,不会出现在保存的文本中。)</span></p>
|
|
91
88
|
<p data-signid="r-l" class="text" contenteditable="false"><span style="font-size: 12px; font-family: FangSong;text-indent: 2em;"> [2] 张和生.地质力学系统理论[D].太原:太原理工大学,1998. (当前文本只是示例展示,不会出现在保存的文本中。)</span></p>
|
|
92
89
|
<p data-signid="referenceSplitLine" contenteditable="false" class="paging-line">分 页 线(保存文档时线下内容另起一页)</p>
|
|
93
|
-
<p></p>
|
|
94
90
|
<p data-signid="ack" style="text-align: center"><strong><span style="font-size: 16px; color: rgb(0, 0, 0)">致谢</span></strong></p>
|
|
95
91
|
<p><span style="font-size: 14px; font-family: KaiTi; color: rgb(0, 0, 0)">致谢内容...</span></p>
|
|
96
92
|
<p data-signid="paragraph" style="margin: 30px 0px 0px; text-align: right"><strong><span style="font-size: 14px; color: rgb(0, 0, 0)">请在此处输入落款</span></strong></p>
|
|
@@ -1239,6 +1239,28 @@ export default {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
+
} else {
|
|
1243
|
+
if(/r-/.test(item.attrs.signId) || /a-/.test(item.attrs.signId)){
|
|
1244
|
+
json.content.splice(i,1)
|
|
1245
|
+
editor.chain().setContent(json).run()
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
let r = json.content.filter(item=>item.attrs.signId&&/r-/.test(item.attrs.signId)).length
|
|
1249
|
+
let a = json.content.filter(item=>item.attrs.signId&&/a-/.test(item.attrs.signId)).length
|
|
1250
|
+
for (let i = 0; i < json.content.length; i++){
|
|
1251
|
+
const item = json.content[i]
|
|
1252
|
+
if (r===0){
|
|
1253
|
+
if(item.attrs.signId==='reference' || item.attrs.signId==='reference-1' || item.attrs.signId==='annotationSplitLine'){
|
|
1254
|
+
json.content.splice(i,1)
|
|
1255
|
+
editor.chain().setContent(json).run()
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
if (a===0){
|
|
1259
|
+
if(item.attrs.signId==='annotation' || item.attrs.signId==='annotation-1' || item.attrs.signId==='referenceSplitLine'){
|
|
1260
|
+
json.content.splice(i,1)
|
|
1261
|
+
editor.chain().setContent(json).run()
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1242
1264
|
}
|
|
1243
1265
|
if (json.content.length === 1 && item && !item.content) {
|
|
1244
1266
|
_this.interpositionData = []
|
|
@@ -2091,11 +2113,11 @@ export default {
|
|
|
2091
2113
|
pHeight = 0
|
|
2092
2114
|
html = ''
|
|
2093
2115
|
}
|
|
2094
|
-
if (data[i].dataset?.signid === 'ack') {
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
}
|
|
2116
|
+
// if (data[i].dataset?.signid === 'ack') {
|
|
2117
|
+
// this.htmlArr.push(html)
|
|
2118
|
+
// pHeight = 0
|
|
2119
|
+
// html = ''
|
|
2120
|
+
// }
|
|
2099
2121
|
let text = data[i].offsetHeight
|
|
2100
2122
|
if ((pHeight + text) > max) {
|
|
2101
2123
|
const {start, end, size} = this.rows(data[i], max - pHeight)
|