zydx-plus 1.32.205 → 1.32.207
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
|
@@ -855,7 +855,7 @@ export default {
|
|
|
855
855
|
}
|
|
856
856
|
|
|
857
857
|
:deep(.read-only-p p) {
|
|
858
|
-
line-height:
|
|
858
|
+
line-height: 24px;
|
|
859
859
|
text-align: justify;
|
|
860
860
|
}
|
|
861
861
|
|
|
@@ -964,7 +964,7 @@ label {
|
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
.editing-cont :deep(p) {
|
|
967
|
-
line-height:
|
|
967
|
+
line-height: 24px;
|
|
968
968
|
}
|
|
969
969
|
.editing-cont :deep(img) {
|
|
970
970
|
padding: 5px 0;
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
<div class="enclosure-item en-but">
|
|
32
32
|
<div style="display: inline-block; height: 21px;">
|
|
33
|
-
<button class="
|
|
34
|
-
<button class="
|
|
35
|
-
<button class="
|
|
33
|
+
<button class="buts but-f" v-if="!item.name" @click="see(index)">查看</button>
|
|
34
|
+
<button class="buts but-f" v-if="!item.name&&downloadShow" @click="download(index)">下载</button>
|
|
35
|
+
<button class="buts but-f" v-if="delShow" @click="del(index)">
|
|
36
36
|
<span v-if="item.active">删除</span>
|
|
37
37
|
<svg v-else xmlns="http://www.w3.org/2000/svg"
|
|
38
38
|
width="14"
|
|
@@ -183,6 +183,10 @@ export default {
|
|
|
183
183
|
type: Boolean,
|
|
184
184
|
default: true
|
|
185
185
|
},
|
|
186
|
+
downloadShow: {
|
|
187
|
+
type: Boolean,
|
|
188
|
+
default: true
|
|
189
|
+
},
|
|
186
190
|
placeholder: {
|
|
187
191
|
type: String,
|
|
188
192
|
default: '请输入内容'
|
|
@@ -346,12 +350,17 @@ export default {
|
|
|
346
350
|
const cla = this.randomId()
|
|
347
351
|
const html = `<p class="imgCont ${cla}"><img src="${url}" alt="" /></p>`
|
|
348
352
|
this.editor.chain().focus().insertContentAt(this.selection(),html).run()
|
|
349
|
-
console.log(this.selection())
|
|
350
353
|
if(this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
|
|
351
354
|
if(this.selectionClass(cla)) {
|
|
352
355
|
this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
|
|
353
356
|
}
|
|
354
357
|
},
|
|
358
|
+
insertContent(v) {
|
|
359
|
+
for(let i=0; i< v.length; i++) {
|
|
360
|
+
let html = json2html(v[i])
|
|
361
|
+
this.editor.chain().focus().insertContentAt(this.selection(),html).run()
|
|
362
|
+
}
|
|
363
|
+
},
|
|
355
364
|
// 查询class
|
|
356
365
|
selectionClass(v) {
|
|
357
366
|
const json = this.editor.getJSON()
|
|
@@ -447,20 +456,20 @@ export default {
|
|
|
447
456
|
display: none !important;
|
|
448
457
|
}
|
|
449
458
|
.editor :deep(h1) {
|
|
450
|
-
line-height:
|
|
459
|
+
line-height: 24px;
|
|
451
460
|
font-size: 18px;
|
|
452
461
|
}
|
|
453
462
|
.editor :deep(h2) {
|
|
454
|
-
line-height:
|
|
463
|
+
line-height: 24px;
|
|
455
464
|
font-size: 16px;
|
|
456
465
|
}
|
|
457
466
|
.editor :deep(h3) {
|
|
458
|
-
line-height:
|
|
467
|
+
line-height: 24px;
|
|
459
468
|
font-size: 14px;
|
|
460
469
|
}
|
|
461
470
|
.editor :deep(p) {
|
|
462
471
|
font-size: 14px;
|
|
463
|
-
line-height:
|
|
472
|
+
line-height: 24px;
|
|
464
473
|
}
|
|
465
474
|
:deep(.ProseMirror) p.is-editor-empty:first-child::before {
|
|
466
475
|
content: attr(data-placeholder);
|
|
@@ -497,7 +506,6 @@ export default {
|
|
|
497
506
|
.ed-title{
|
|
498
507
|
flex: 1;
|
|
499
508
|
text-align: left;
|
|
500
|
-
line-height: 22px;
|
|
501
509
|
font-size: 16px;
|
|
502
510
|
}
|
|
503
511
|
.enclosure-list{
|
|
@@ -536,7 +544,7 @@ export default {
|
|
|
536
544
|
padding: 5px 0;
|
|
537
545
|
}
|
|
538
546
|
.ed-cont{
|
|
539
|
-
padding-top:
|
|
547
|
+
padding-top: 4px;
|
|
540
548
|
}
|
|
541
549
|
.editor{
|
|
542
550
|
border-radius: 3px;
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
.text{
|
|
90
90
|
width: 100%;
|
|
91
91
|
border: 1px solid #ccc;
|
|
92
|
-
line-height:
|
|
92
|
+
line-height: 24px;
|
|
93
93
|
box-sizing: border-box;
|
|
94
94
|
text-indent: 2em;
|
|
95
95
|
background-color: #fff;
|
|
@@ -98,4 +98,4 @@ export default {
|
|
|
98
98
|
content: attr(placeholder);
|
|
99
99
|
color: gray;
|
|
100
100
|
}
|
|
101
|
-
</style>
|
|
101
|
+
</style>
|