zydx-plus 1.32.257 → 1.32.259

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.257",
3
+ "version": "1.32.259",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -46,13 +46,13 @@ export function butJson (editor,data) {
46
46
  name: '添加作者',
47
47
  key: 'authorMenu',
48
48
  menuKeys: [],
49
- html: `<p class="author" data-signId="author" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 14px;">${menusData(data,'authorMenu').text}</span></p>`
49
+ html: `<p class="author" data-signId="author" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 16px;font-family: KaiT;">${menusData(data,'authorMenu').text}</span></p>`
50
50
  },
51
51
  subjectMenu: {
52
52
  name: '添加题目',
53
53
  key: 'subjectMenu',
54
54
  menuKeys: [],
55
- html: `<p data-signId="subject" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 24px;">${menusData(data,'subjectMenu').text}</span></p>`
55
+ html: `<p data-signId="subject" style="text-align: center;padding-bottom: 30px;"><span style="color: rgb(0, 0, 0);font-size: 24px;font-family: SimHei;font-weight: 700;">${menusData(data,'subjectMenu').text}</span></p>`
56
56
  },
57
57
  paragraphMenu: {
58
58
  name: '添加落款',
@@ -73,19 +73,19 @@ export function butJson (editor,data) {
73
73
  name: '关键词',
74
74
  key: 'keywordMenu',
75
75
  menuKeys: [],
76
- html: `<p class="keyword"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关键词:</span><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi">关键词内容...</span></p>`
76
+ html: `<p class="keyword" data-signId="keyword"><span style="color: rgb(0, 0, 0);font-size: 12px;font-weight: 700;font-family: SimSun;">关键词:</span><span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi">关键词内容...</span></p>`
77
77
  },
78
78
  abstractMenu: {
79
79
  name: '添加摘要',
80
80
  key: 'abstractMenu',
81
81
  menuKeys: [],
82
- html: `<p class="abstract"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;摘要:</span><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi">摘要内容...</span></p>`
82
+ html: `<p class="abstract" data-signId="abstract"><span style="color: rgb(0, 0, 0);font-size: 12px;font-weight: 700;font-family: SimSun;">摘要:</span><span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi">摘要内容...</span></p>`
83
83
  },
84
84
  literatureMenu: {
85
85
  name: '添加文献',
86
86
  key: 'literatureMenu',
87
87
  menuKeys: [],
88
- html: `<p><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi">[1]作者.期刊论文名称IJ1.期刊名称,发表年份(第几期):页码</span></p><p><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi">[2]作者.学位论文名称[D1.毕业院校所在城市:毕业院校,论文提交年份:页码</span></p><p><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi">[3]作者.著作名称[M.出版社所在城市:出版社名称,出版年份:页码.</span></p><p data-signId="literature"><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi">[4]作者.文章名称[N].报纸名称,发行日期(版面)</span></p>`
88
+ html: `<p><span style="color: rgb(0, 0, 0);font-size: 12px;font-family: SimSun">[1]作者.期刊论文名称IJ1.期刊名称,发表年份(第几期):页码</span></p><p><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: SimSun">[2]作者.学位论文名称[D1.毕业院校所在城市:毕业院校,论文提交年份:页码</span></p><p><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: SimSun">[3]作者.著作名称[M.出版社所在城市:出版社名称,出版年份:页码.</span></p><p data-signId="literature"><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: SimSun">[4]作者.文章名称[N].报纸名称,发行日期(版面)</span></p>`
89
89
  },
90
90
  taggingMenu: {
91
91
  name: '添加标注',
@@ -104,8 +104,8 @@ export function butJson (editor,data) {
104
104
  key: 'ackMenu',
105
105
  menuKeys: [],
106
106
  html: [
107
- `<p data-signId="ack" contenteditable="false" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 24px;font-weight: bold;">致谢</span></p>`,
108
- `<p><span style="color: rgb(0, 0, 0);font-size: 14px;">致谢内容...</span></p>`
107
+ `<p data-signId="ack" contenteditable="false" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 16px;font-weight: bold;">致谢</span></p>`,
108
+ `<p><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi;">致谢内容...</span></p>`
109
109
  ]
110
110
  },
111
111
  'group-image': {
@@ -69,11 +69,6 @@
69
69
  <button class="but" @click="imgCancel">取消</button>
70
70
  </div>
71
71
  </div>
72
- <!-- <div v-if="loading" class="loading-back">-->
73
- <!-- <div class="loading-cont">-->
74
- <!-- <div class="loadings">Loading</div>-->
75
- <!-- </div>-->
76
- <!-- </div>-->
77
72
  <div class="down-html" id="test" v-html="htmlArr2"></div>
78
73
  </div>
79
74
  </template>
@@ -796,12 +791,14 @@ export default {
796
791
  // 关键词
797
792
  if (data.key === 'keywordMenu') {
798
793
  const html = butJson(this.editor, this.menusText)[data.key].html
799
- this.editor.chain().focus().insertContentAt(this.selection(), html).run()
794
+ const r = await this.signIdData('keyword')
795
+ if (r === -1) this.editor.chain().focus().insertContentAt(this.selection(), html).run()
800
796
  }
801
797
  // 摘要
802
798
  if (data.key === 'abstractMenu') {
803
799
  const html = butJson(this.editor, this.menusText)[data.key].html
804
- this.editor.chain().focus().insertContentAt(this.selection(), html).run()
800
+ const r = await this.signIdData('abstract')
801
+ if (r === -1) this.editor.chain().focus().insertContentAt(this.selection(), html).run()
805
802
  }
806
803
  // 致谢
807
804
  if (data.key === 'ackMenu') {
@@ -918,6 +915,12 @@ export default {
918
915
  .down-html :deep(img){
919
916
  padding: 5px 0;
920
917
  }
918
+ :deep(.keyword) {
919
+ text-indent: 2em;
920
+ }
921
+ :deep(.abstract) {
922
+ text-indent: 2em;
923
+ }
921
924
  .read-only {
922
925
  position: relative;
923
926
  margin: 0 auto;
@@ -925,7 +928,7 @@ export default {
925
928
 
926
929
  .read-only-page {
927
930
  width: 100%;
928
- padding: 100px;
931
+ padding: 120px 100px 66px 100px;
929
932
  background-color: #fff;
930
933
  box-sizing: border-box;
931
934
  position: relative;
@@ -944,13 +947,19 @@ export default {
944
947
  line-height: 24px;
945
948
  text-align: justify;
946
949
  }
950
+ :deep(p[data-signid="subject"]) {
951
+ padding-bottom: 30px;
952
+ }
953
+ :deep(.author){
954
+ padding-bottom: 40px;
955
+ }
947
956
  :deep(.text){
948
957
  text-indent: 2em;
949
958
  }
950
959
 
951
960
  .read-only-a {
952
961
  position: absolute;
953
- bottom: 70px;
962
+ bottom: 36px;
954
963
  left: 50%;
955
964
  z-index: 1;
956
965
  font-size: 14px;
@@ -1169,57 +1178,11 @@ li {
1169
1178
  }
1170
1179
 
1171
1180
  .editing-cont {
1172
- padding: 100px;
1181
+ padding: 120px 100px 66px 100px;
1173
1182
  box-sizing: border-box;
1174
1183
  width: 794px;
1175
1184
  min-height: 700px;
1176
1185
  }
1177
- .loading-back{
1178
- position: absolute;
1179
- top: 0;
1180
- left: 0;
1181
- right: 0;
1182
- bottom: 0;
1183
- z-index: 100;
1184
- display: flex;
1185
- align-items: center;
1186
- }
1187
- .loading-cont{
1188
- display: inline-block;
1189
- margin: 0 auto;
1190
- }
1191
- .loadings {
1192
- display: inline-block;
1193
- font-size: 28px;
1194
- font-family: Arial, Helvetica, sans-serif;
1195
- font-weight: bold;
1196
- color: #fff;
1197
- text-shadow: 0 0 2px #ff3d00, 0 0 1px #ff3d00, 0 0 1px #ff3d00;
1198
- letter-spacing: 2px;
1199
- position: relative;
1200
- }
1201
-
1202
- .loadings::after {
1203
- content: "Loading";
1204
- position: absolute;
1205
- left: 0;
1206
- top: 0;
1207
- color: #ff3d00;
1208
- width: 0%;
1209
- height: 100%;
1210
- overflow: hidden;
1211
- animation: loading-animation 6s linear infinite;
1212
- }
1213
-
1214
- @keyframes loading-animation {
1215
- 0% {
1216
- width: 0;
1217
- }
1218
-
1219
- 100% {
1220
- width: 100%;
1221
- }
1222
- }
1223
1186
  .menu{
1224
1187
  background-color: #fff;
1225
1188
  padding: 5px;