zydx-plus 1.33.348 → 1.33.350
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 +1 -1
- package/src/components/dragPopup/src/dragPopup.vue +8 -2
- package/src/components/editor/src/butJson.js +52 -19
- package/src/components/editor/src/editor.vue +757 -182
- package/src/components/editor/src/extend/margin.js +48 -0
- package/src/components/editor/src/image/annotation.png +0 -0
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<slot name="icon"></slot>
|
|
12
12
|
<i class="disconnect" v-if="disconnectShow" @click.stop="disconnect"></i>
|
|
13
13
|
<i class="enlarge" v-if="enlargeShow" @click.stop="enlarge"></i>
|
|
14
|
-
<i @click.stop="close"></i>
|
|
14
|
+
<i v-if="closeShow" @click.stop="close"></i>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
<div :class="{'drag-cont': dragStatus || dragTextShow,'drag-conts': !dragStatus || !dragTextShow}"
|
|
@@ -104,6 +104,10 @@ export default {
|
|
|
104
104
|
type: Number,
|
|
105
105
|
default: 200
|
|
106
106
|
},
|
|
107
|
+
closeShow: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: true
|
|
110
|
+
}
|
|
107
111
|
},
|
|
108
112
|
beforeUnmount() {
|
|
109
113
|
this.clean()
|
|
@@ -153,7 +157,9 @@ export default {
|
|
|
153
157
|
if(document.getElementById(pop[i]) === null) continue
|
|
154
158
|
document.getElementById(pop[i]).style.zIndex = '9999'
|
|
155
159
|
}
|
|
156
|
-
document.getElementById(this.id)
|
|
160
|
+
if(document.getElementById(this.id)){
|
|
161
|
+
document.getElementById(this.id).style.zIndex = '10000'
|
|
162
|
+
}
|
|
157
163
|
},
|
|
158
164
|
clean() {
|
|
159
165
|
let pop = JSON.parse(sessionStorage.getItem('pop'))
|
|
@@ -28,11 +28,11 @@ export function butJson(editor, data) {
|
|
|
28
28
|
key: 'shortcut',
|
|
29
29
|
menuKeys: [
|
|
30
30
|
{
|
|
31
|
-
name: '
|
|
31
|
+
name: '标 志',
|
|
32
32
|
key: 'signMenu',
|
|
33
33
|
menuKeys: []
|
|
34
34
|
}, {
|
|
35
|
-
name: '
|
|
35
|
+
name: '红 头',
|
|
36
36
|
key: 'redMenu',
|
|
37
37
|
menuKeys: [],
|
|
38
38
|
html: `<p style="text-align: center;"><span style="color: rgb(225, 60, 57);font-size: 48px;">XXXXXXX(单位)文件</span></p><p data-signId="red" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 16px;">xxx〔xx〕xxxx 号</span></p>`
|
|
@@ -42,7 +42,17 @@ export function butJson(editor, data) {
|
|
|
42
42
|
menuKeys: [],
|
|
43
43
|
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>`
|
|
44
44
|
}, {
|
|
45
|
-
name: '
|
|
45
|
+
name: '作 者',
|
|
46
|
+
key: 'authorMenu',
|
|
47
|
+
menuKeys: [],
|
|
48
|
+
html: `<p class="author" data-signId="author" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiT;">${menusData(data, 'authorMenu').text}:</span></p>`
|
|
49
|
+
}, {
|
|
50
|
+
name: '抬 头',
|
|
51
|
+
key: 'authorMenu',
|
|
52
|
+
menuKeys: [],
|
|
53
|
+
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>`
|
|
54
|
+
}, {
|
|
55
|
+
name: '摘 要',
|
|
46
56
|
key: 'abstractMenu',
|
|
47
57
|
menuKeys: [],
|
|
48
58
|
html: `<p class="abstract" data-signId="abstract"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;font-family: SimSun;">摘要:</span> <span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi"> 摘要内容...</span></p>`
|
|
@@ -52,19 +62,34 @@ export function butJson(editor, data) {
|
|
|
52
62
|
menuKeys: [],
|
|
53
63
|
html: `<p class="keyword" data-signId="keyword"><span contenteditable="false" style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;font-family: SimSun;">关键词:</span> <span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi"> 关键词内容...</span></p>`
|
|
54
64
|
}, {
|
|
55
|
-
name: '
|
|
65
|
+
name: '标 题',
|
|
66
|
+
key: 'paragraphTitle',
|
|
67
|
+
menuKeys: [],
|
|
68
|
+
html: `<p data-signId="paragraph" class="indent"><span style="color: rgb(0, 0, 0);font-size: 16px;font-weight: 700;">标题名称</span></p>`
|
|
69
|
+
},{
|
|
70
|
+
name: '正 文',
|
|
71
|
+
key: 'paragraphBody',
|
|
72
|
+
menuKeys: [],
|
|
73
|
+
html: `<p class="indent"><span style="color: rgb(0, 0, 0);font-size: 14px; font-family:SimHei;">正文内容</span></p>`
|
|
74
|
+
},{
|
|
75
|
+
name: '信息源',
|
|
76
|
+
key: 'sourcesInfo',
|
|
77
|
+
menuKeys: [],
|
|
78
|
+
html: `<p style="text-align: right;"><span style="color: rgb(0, 0, 0);font-size: 14px;">———— </span><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: SimSun;">信息源文本</span></p>`
|
|
79
|
+
},{
|
|
80
|
+
name: '落 款',
|
|
56
81
|
key: 'paragraphMenu',
|
|
57
82
|
menuKeys: [],
|
|
58
83
|
html: `<span> </span><p data-signId="paragraph" style="text-align: right;"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;">落款人名</span></p><p style="text-align: right;"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700">${getTime()}</span></p>`
|
|
59
84
|
}, {
|
|
60
|
-
name: '
|
|
85
|
+
name: '致 谢',
|
|
61
86
|
key: 'ackMenu',
|
|
62
87
|
menuKeys: [],
|
|
63
88
|
html: [
|
|
64
89
|
`<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>`,
|
|
65
90
|
`<p><span style="color: rgb(0, 0, 0);font-size: 14px;font-family: KaiTi;">致谢内容...</span></p>`
|
|
66
91
|
]
|
|
67
|
-
}
|
|
92
|
+
},
|
|
68
93
|
]
|
|
69
94
|
},
|
|
70
95
|
pageMargin: {
|
|
@@ -78,21 +103,20 @@ export function butJson(editor, data) {
|
|
|
78
103
|
],
|
|
79
104
|
},
|
|
80
105
|
paragraph: {
|
|
81
|
-
name: '
|
|
106
|
+
name: '段落设置',
|
|
82
107
|
key: 'paragraph',
|
|
83
108
|
menuKeys: [
|
|
84
|
-
{name: '缩
|
|
85
|
-
{
|
|
86
|
-
|
|
87
|
-
childMenuKeys: [
|
|
109
|
+
// {name: '缩 进', key: 'indent'},
|
|
110
|
+
// {name: '行间距', key: 'LineSpace',
|
|
111
|
+
/*childMenuKeys: [
|
|
88
112
|
{name: '1倍', key: '1'},
|
|
89
113
|
{name: '1.25倍', key: '1.25'},
|
|
90
114
|
{name: '1.5倍', key: '1.5'},
|
|
91
115
|
{name: '2倍', key: '2'},
|
|
92
116
|
{name: '2.5倍', key: '2.5'},
|
|
93
117
|
{name: '3倍', key: '3'}
|
|
94
|
-
]
|
|
95
|
-
},
|
|
118
|
+
]*/
|
|
119
|
+
// },
|
|
96
120
|
],
|
|
97
121
|
},
|
|
98
122
|
alignmentMode: {
|
|
@@ -216,6 +240,12 @@ export function butJson(editor, data) {
|
|
|
216
240
|
{name: '上传图片', key: 'uploadImage'},
|
|
217
241
|
]
|
|
218
242
|
},
|
|
243
|
+
{
|
|
244
|
+
name: '名词解释',
|
|
245
|
+
key: 'nounExplain',
|
|
246
|
+
menuKeys: [],
|
|
247
|
+
html: [],
|
|
248
|
+
},
|
|
219
249
|
{
|
|
220
250
|
name: '链接注释',
|
|
221
251
|
key: 'taggingMenu',
|
|
@@ -240,25 +270,28 @@ export function butJson(editor, data) {
|
|
|
240
270
|
],
|
|
241
271
|
html: [],
|
|
242
272
|
},
|
|
273
|
+
{
|
|
274
|
+
name: '链接图片',
|
|
275
|
+
key: 'imageLink',
|
|
276
|
+
childMenuKeys: [],
|
|
277
|
+
html: [],
|
|
278
|
+
},
|
|
243
279
|
{
|
|
244
280
|
name: '链接视频',
|
|
245
281
|
key: 'videoLink',
|
|
246
|
-
childMenuKeys: [
|
|
247
|
-
],
|
|
282
|
+
childMenuKeys: [],
|
|
248
283
|
html: [],
|
|
249
284
|
},
|
|
250
285
|
{
|
|
251
286
|
name: '链接课件',
|
|
252
287
|
key: 'linkCourseware',
|
|
253
|
-
childMenuKeys: [
|
|
254
|
-
],
|
|
288
|
+
childMenuKeys: [],
|
|
255
289
|
html: [],
|
|
256
290
|
},
|
|
257
291
|
{
|
|
258
292
|
name: '链接虚仿',
|
|
259
293
|
key: 'linkFake',
|
|
260
|
-
childMenuKeys: [
|
|
261
|
-
],
|
|
294
|
+
childMenuKeys: [],
|
|
262
295
|
html: [],
|
|
263
296
|
},
|
|
264
297
|
{
|