@haluo/biz 2.0.37 → 2.0.39
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/README.md +1 -0
- package/dist/haluo-biz.js +2160 -790
- package/dist/haluo-biz.umd.cjs +2201 -831
- package/dist/{squire-raw.ca3d11c8.js → squire-raw-1aaeff0b.js} +18 -15
- package/dist/style.css +201 -50
- package/package.json +3 -2
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
var COLOUR_CLASS = "colour";
|
|
15
15
|
var FONT_FAMILY_CLASS = "font";
|
|
16
16
|
var FONT_SIZE_CLASS = "size";
|
|
17
|
-
var ZWS = "
|
|
17
|
+
var ZWS = "";
|
|
18
18
|
var win = doc.defaultView;
|
|
19
19
|
var ua = navigator.userAgent;
|
|
20
20
|
var isAndroid = /Android/.test(ua);
|
|
@@ -44,11 +44,17 @@
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
var typeToBitArray = {
|
|
47
|
+
// ELEMENT_NODE
|
|
47
48
|
1: 1,
|
|
49
|
+
// ATTRIBUTE_NODE
|
|
48
50
|
2: 2,
|
|
51
|
+
// TEXT_NODE
|
|
49
52
|
3: 4,
|
|
53
|
+
// COMMENT_NODE
|
|
50
54
|
8: 128,
|
|
55
|
+
// DOCUMENT_NODE
|
|
51
56
|
9: 256,
|
|
57
|
+
// DOCUMENT_FRAGMENT_NODE
|
|
52
58
|
11: 1024
|
|
53
59
|
};
|
|
54
60
|
function TreeWalker(root, nodeType, filter) {
|
|
@@ -382,7 +388,7 @@
|
|
|
382
388
|
node.appendChild(fixer);
|
|
383
389
|
} catch (error) {
|
|
384
390
|
self.didError({
|
|
385
|
-
name: "Squire: fixCursor
|
|
391
|
+
name: "Squire: fixCursor – " + error,
|
|
386
392
|
message: "Parent: " + node.nodeName + "/" + node.innerHTML + " appendChild: " + fixer.nodeName
|
|
387
393
|
});
|
|
388
394
|
}
|
|
@@ -399,17 +405,6 @@
|
|
|
399
405
|
child = children[i];
|
|
400
406
|
isBR = child.nodeName === "BR";
|
|
401
407
|
if (!isBR && isInline(child)) {
|
|
402
|
-
if (child.classList && child.classList.contains("halo-picture-area")) {
|
|
403
|
-
return;
|
|
404
|
-
}
|
|
405
|
-
if (!wrapper) {
|
|
406
|
-
wrapper = createElement(
|
|
407
|
-
doc2,
|
|
408
|
-
config.blockTag,
|
|
409
|
-
config.blockAttributes
|
|
410
|
-
);
|
|
411
|
-
}
|
|
412
|
-
wrapper.appendChild(child);
|
|
413
408
|
i -= 1;
|
|
414
409
|
l -= 1;
|
|
415
410
|
} else if (isBR || wrapper) {
|
|
@@ -728,7 +723,8 @@
|
|
|
728
723
|
block = getStartBlockOfRange(range, root);
|
|
729
724
|
firstBlockInFrag = getNextBlock(frag, frag);
|
|
730
725
|
replaceBlock = !!block && isEmptyBlock(block);
|
|
731
|
-
if (block && firstBlockInFrag && !replaceBlock &&
|
|
726
|
+
if (block && firstBlockInFrag && !replaceBlock && // Don't merge table cells or PRE elements into block
|
|
727
|
+
!getNearest(firstBlockInFrag, frag, "PRE") && !getNearest(firstBlockInFrag, frag, "TABLE")) {
|
|
732
728
|
moveRangeBoundariesUpTree(range, block, block, root);
|
|
733
729
|
range.collapse(true);
|
|
734
730
|
container = range.endContainer;
|
|
@@ -744,7 +740,10 @@
|
|
|
744
740
|
container = nodeAfterSplit.parentNode;
|
|
745
741
|
offset = indexOf.call(container.childNodes, nodeAfterSplit);
|
|
746
742
|
}
|
|
747
|
-
if (
|
|
743
|
+
if (
|
|
744
|
+
/* isBlock( container ) && */
|
|
745
|
+
offset !== getLength(container)
|
|
746
|
+
) {
|
|
748
747
|
blockContentsAfterSplit = root.ownerDocument.createDocumentFragment();
|
|
749
748
|
while (node = container.childNodes[offset]) {
|
|
750
749
|
blockContentsAfterSplit.appendChild(node);
|
|
@@ -1793,9 +1792,11 @@
|
|
|
1793
1792
|
if (hasImage) {
|
|
1794
1793
|
this.fireEvent("dragover", {
|
|
1795
1794
|
dataTransfer: clipboardData,
|
|
1795
|
+
/* jshint loopfunc: true */
|
|
1796
1796
|
preventDefault: function() {
|
|
1797
1797
|
fireDrop = true;
|
|
1798
1798
|
}
|
|
1799
|
+
/* jshint loopfunc: false */
|
|
1799
1800
|
});
|
|
1800
1801
|
if (fireDrop) {
|
|
1801
1802
|
this.fireEvent("drop", {
|
|
@@ -2002,7 +2003,9 @@
|
|
|
2002
2003
|
leafNodeNames,
|
|
2003
2004
|
undo: {
|
|
2004
2005
|
documentSizeThreshold: -1,
|
|
2006
|
+
// -1 means no threshold
|
|
2005
2007
|
undoLimit: -1
|
|
2008
|
+
// -1 means no limit
|
|
2006
2009
|
},
|
|
2007
2010
|
isInsertedHTMLSanitized: true,
|
|
2008
2011
|
isSetHTMLSanitized: true,
|
package/dist/style.css
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
.m-colorPicker[data-v-b46fc003]{position:relative;text-align:left;font-size:14px;display:inline-block;outline:none}.m-colorPicker ul[data-v-b46fc003],.m-colorPicker li[data-v-b46fc003],.m-colorPicker ol[data-v-b46fc003]{list-style:none;margin:0;padding:0}.m-colorPicker .colorBtn[data-v-b46fc003]{width:15px;height:15px}.m-colorPicker .colorBtn.disabled[data-v-b46fc003]{cursor:no-drop}.m-colorPicker .box[data-v-b46fc003]{position:absolute;width:190px;background:#fff;border:1px solid #ddd;visibility:hidden;border-radius:2px;margin-top:2px;padding:10px 10px 5px;box-shadow:0 0 5px #00000026;opacity:0;transition:all .3s ease;box-sizing:content-box}.m-colorPicker .box h3[data-v-b46fc003]{margin:10px 0 5px;font-size:14px;font-weight:400;line-height:1;color:#333}.m-colorPicker .box input[data-v-b46fc003]{visibility:hidden;position:absolute;left:0;bottom:0}.m-colorPicker .box.open[data-v-b46fc003]{visibility:visible;opacity:1;z-index:1}.m-colorPicker .hd[data-v-b46fc003]{overflow:hidden;line-height:29px}.m-colorPicker .hd .colorView[data-v-b46fc003]{width:100px;height:30px;float:left;transition:background-color .3s ease}.m-colorPicker .hd .defaultColor[data-v-b46fc003]{width:80px;float:right;text-align:center;border:1px solid #ddd;cursor:pointer;color:#333}.m-colorPicker .tColor li[data-v-b46fc003]{width:15px;height:15px;display:inline-block;margin:0 2px;transition:all .3s ease}.m-colorPicker .tColor li[data-v-b46fc003]:hover{box-shadow:0 0 5px #0006
|
|
2
|
-
.m12[data-v-
|
|
1
|
+
.m-colorPicker[data-v-b46fc003]{position:relative;text-align:left;font-size:14px;display:inline-block;outline:none}.m-colorPicker ul[data-v-b46fc003],.m-colorPicker li[data-v-b46fc003],.m-colorPicker ol[data-v-b46fc003]{list-style:none;margin:0;padding:0}.m-colorPicker .colorBtn[data-v-b46fc003]{width:15px;height:15px}.m-colorPicker .colorBtn.disabled[data-v-b46fc003]{cursor:no-drop}.m-colorPicker .box[data-v-b46fc003]{position:absolute;width:190px;background:#fff;border:1px solid #ddd;visibility:hidden;border-radius:2px;margin-top:2px;padding:10px 10px 5px;box-shadow:0 0 5px #00000026;opacity:0;transition:all .3s ease;box-sizing:content-box}.m-colorPicker .box h3[data-v-b46fc003]{margin:10px 0 5px;font-size:14px;font-weight:400;line-height:1;color:#333}.m-colorPicker .box input[data-v-b46fc003]{visibility:hidden;position:absolute;left:0;bottom:0}.m-colorPicker .box.open[data-v-b46fc003]{visibility:visible;opacity:1;z-index:1}.m-colorPicker .hd[data-v-b46fc003]{overflow:hidden;line-height:29px}.m-colorPicker .hd .colorView[data-v-b46fc003]{width:100px;height:30px;float:left;transition:background-color .3s ease}.m-colorPicker .hd .defaultColor[data-v-b46fc003]{width:80px;float:right;text-align:center;border:1px solid #ddd;cursor:pointer;color:#333}.m-colorPicker .tColor li[data-v-b46fc003]{width:15px;height:15px;display:inline-block;margin:0 2px;transition:all .3s ease}.m-colorPicker .tColor li[data-v-b46fc003]:hover{box-shadow:0 0 5px #0006;transform:scale(1.3)}.m-colorPicker .bColor li[data-v-b46fc003]{width:15px;display:inline-block;margin:0 2px}.m-colorPicker .bColor li li[data-v-b46fc003]{display:block;width:15px;height:15px;transition:all .3s ease;margin:0}.m-colorPicker .bColor li li[data-v-b46fc003]:hover{box-shadow:0 0 5px #0006;transform:scale(1.3)}
|
|
2
|
+
.m12[data-v-50235bb8] {
|
|
3
3
|
margin: 0 12px;
|
|
4
4
|
}
|
|
5
|
-
.ml16[data-v-
|
|
5
|
+
.ml16[data-v-50235bb8] {
|
|
6
6
|
margin-left: 16px;
|
|
7
7
|
}
|
|
8
|
-
.mr12[data-v-
|
|
8
|
+
.mr12[data-v-50235bb8] {
|
|
9
9
|
margin-right: 12px;
|
|
10
10
|
}
|
|
11
|
-
.ml12[data-v-
|
|
11
|
+
.ml12[data-v-50235bb8] {
|
|
12
12
|
margin-left: 12px;
|
|
13
13
|
}
|
|
14
|
-
.mr18[data-v-
|
|
14
|
+
.mr18[data-v-50235bb8] {
|
|
15
15
|
margin-right: 18px;
|
|
16
16
|
}
|
|
17
|
-
.tools[data-v-
|
|
17
|
+
.tools[data-v-50235bb8] {
|
|
18
18
|
z-index: 2;
|
|
19
19
|
position: relative;
|
|
20
20
|
background: #FAFAFA;
|
|
21
21
|
}
|
|
22
|
-
.tools .tools-content[data-v-
|
|
22
|
+
.tools .tools-content[data-v-50235bb8] {
|
|
23
23
|
display: flex;
|
|
24
24
|
align-items: center;
|
|
25
25
|
}
|
|
26
|
-
.tools img[data-v-
|
|
26
|
+
.tools img[data-v-50235bb8] {
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
}
|
|
29
|
-
.tools .box[data-v-
|
|
29
|
+
.tools .box[data-v-50235bb8] {
|
|
30
30
|
position: relative;
|
|
31
31
|
}
|
|
32
|
-
.tools .box .box-mask[data-v-
|
|
32
|
+
.tools .box .box-mask[data-v-50235bb8] {
|
|
33
33
|
width: 40px;
|
|
34
34
|
height: 40px;
|
|
35
35
|
background: black;
|
|
@@ -38,32 +38,31 @@
|
|
|
38
38
|
position: absolute;
|
|
39
39
|
pointer-events: none;
|
|
40
40
|
}
|
|
41
|
-
.tools .tools-title[data-v-
|
|
41
|
+
.tools .tools-title[data-v-50235bb8] {
|
|
42
42
|
color: #333333;
|
|
43
43
|
font-size: 18px;
|
|
44
44
|
display: flex;
|
|
45
45
|
align-items: center;
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
}
|
|
48
|
-
.tools .disable[data-v-
|
|
48
|
+
.tools .disable[data-v-50235bb8] {
|
|
49
49
|
cursor: not-allowed;
|
|
50
|
-
|
|
51
|
-
filter: blur(0.6px);
|
|
50
|
+
filter: blur(0.6px);
|
|
52
51
|
}
|
|
53
|
-
.tools .disable img[data-v-
|
|
52
|
+
.tools .disable img[data-v-50235bb8] {
|
|
54
53
|
cursor: not-allowed;
|
|
55
54
|
}
|
|
56
|
-
.tools .wrap[data-v-
|
|
55
|
+
.tools .wrap[data-v-50235bb8] {
|
|
57
56
|
position: relative;
|
|
58
57
|
}
|
|
59
|
-
.tools[data-v-
|
|
58
|
+
.tools[data-v-50235bb8] .m-colorPicker {
|
|
60
59
|
position: absolute;
|
|
61
60
|
width: 100%;
|
|
62
61
|
left: 0;
|
|
63
62
|
z-index: -1;
|
|
64
63
|
height: 100%;
|
|
65
64
|
}
|
|
66
|
-
.tools[data-v-
|
|
65
|
+
.tools[data-v-50235bb8] .m-colorPicker .colorBtn {
|
|
67
66
|
width: 100%;
|
|
68
67
|
height: 100%;
|
|
69
68
|
opacity: 0;
|
|
@@ -429,8 +428,7 @@
|
|
|
429
428
|
position: absolute;
|
|
430
429
|
top: 0;
|
|
431
430
|
right: 0;
|
|
432
|
-
|
|
433
|
-
transform: translate(50%, -50%);
|
|
431
|
+
transform: translate(50%, -50%);
|
|
434
432
|
}
|
|
435
433
|
.insert-img .img-wrap {
|
|
436
434
|
display: flex;
|
|
@@ -464,6 +462,90 @@
|
|
|
464
462
|
margin-top: 12px;
|
|
465
463
|
text-align: center;
|
|
466
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* Created by wanghui on 2017-04-21.
|
|
467
|
+
*
|
|
468
|
+
*/
|
|
469
|
+
.topic-popover-mask {
|
|
470
|
+
position: fixed;
|
|
471
|
+
top: 0;
|
|
472
|
+
left: 0;
|
|
473
|
+
right: 0;
|
|
474
|
+
bottom: 0;
|
|
475
|
+
z-index: 999;
|
|
476
|
+
background: transparent;
|
|
477
|
+
}
|
|
478
|
+
.topic-popover {
|
|
479
|
+
position: fixed;
|
|
480
|
+
z-index: 9999;
|
|
481
|
+
background: #fff;
|
|
482
|
+
border-radius: 4px;
|
|
483
|
+
box-sizing: border-box;
|
|
484
|
+
box-shadow: 0 4px 17px rgba(0, 0, 0, 0.12);
|
|
485
|
+
width: 430px;
|
|
486
|
+
height: 286px;
|
|
487
|
+
overflow-y: auto;
|
|
488
|
+
}
|
|
489
|
+
.topic-popover .topic-popover-content .topic-tabs {
|
|
490
|
+
display: flex;
|
|
491
|
+
border-bottom: 1px solid #f0f0f0;
|
|
492
|
+
background: #fafafa;
|
|
493
|
+
}
|
|
494
|
+
.topic-popover .topic-popover-content .topic-tabs .topic-tab {
|
|
495
|
+
flex: 1;
|
|
496
|
+
padding: 12px 16px;
|
|
497
|
+
text-align: center;
|
|
498
|
+
font-size: 14px;
|
|
499
|
+
color: #666;
|
|
500
|
+
cursor: pointer;
|
|
501
|
+
border-bottom: 2px solid transparent;
|
|
502
|
+
transition: all 0.2s;
|
|
503
|
+
}
|
|
504
|
+
.topic-popover .topic-popover-content .topic-tabs .topic-tab:hover {
|
|
505
|
+
color: #FF3C08;
|
|
506
|
+
background: #f5f5f5;
|
|
507
|
+
}
|
|
508
|
+
.topic-popover .topic-popover-content .topic-tabs .topic-tab.active {
|
|
509
|
+
color: #FF3C08;
|
|
510
|
+
border-bottom-color: #FF3C08;
|
|
511
|
+
background: #fff;
|
|
512
|
+
}
|
|
513
|
+
.topic-popover .topic-popover-content .topic-search-header {
|
|
514
|
+
padding: 12px 16px;
|
|
515
|
+
border-bottom: 1px solid #f0f0f0;
|
|
516
|
+
background: #fafafa;
|
|
517
|
+
}
|
|
518
|
+
.topic-popover .topic-popover-content .topic-search-header .topic-search-title {
|
|
519
|
+
font-size: 14px;
|
|
520
|
+
color: #333;
|
|
521
|
+
font-weight: 500;
|
|
522
|
+
}
|
|
523
|
+
.topic-popover .topic-popover-content .topic-list-container {
|
|
524
|
+
max-height: 240px;
|
|
525
|
+
overflow-y: auto;
|
|
526
|
+
}
|
|
527
|
+
.topic-popover .topic-popover-content .topic-list-container .topic-list .topic-item {
|
|
528
|
+
padding: 12px 16px;
|
|
529
|
+
font-size: 14px;
|
|
530
|
+
color: #333;
|
|
531
|
+
cursor: pointer;
|
|
532
|
+
border-bottom: 1px solid #f8f8f8;
|
|
533
|
+
transition: background-color 0.2s;
|
|
534
|
+
}
|
|
535
|
+
.topic-popover .topic-popover-content .topic-list-container .topic-list .topic-item:hover {
|
|
536
|
+
background: #f5f5f5;
|
|
537
|
+
color: #FF3C08;
|
|
538
|
+
}
|
|
539
|
+
.topic-popover .topic-popover-content .topic-list-container .topic-list .topic-item:last-child {
|
|
540
|
+
border-bottom: none;
|
|
541
|
+
}
|
|
542
|
+
.topic-popover .topic-popover-content .topic-list-container .topic-list .topic-loading,
|
|
543
|
+
.topic-popover .topic-popover-content .topic-list-container .topic-list .topic-empty {
|
|
544
|
+
padding: 20px 16px;
|
|
545
|
+
text-align: center;
|
|
546
|
+
font-size: 14px;
|
|
547
|
+
color: #999;
|
|
548
|
+
}
|
|
467
549
|
.collect-article_lable {
|
|
468
550
|
font-size: 14px;
|
|
469
551
|
color: #333333;
|
|
@@ -477,7 +559,7 @@
|
|
|
477
559
|
color: #999999;
|
|
478
560
|
margin-bottom: 5px;
|
|
479
561
|
}
|
|
480
|
-
.article-item[data-v-
|
|
562
|
+
.article-item[data-v-4ebe06df] {
|
|
481
563
|
-webkit-user-select: none;
|
|
482
564
|
-moz-user-select: none;
|
|
483
565
|
-ms-user-select: none;
|
|
@@ -490,7 +572,7 @@
|
|
|
490
572
|
width: 440px;
|
|
491
573
|
position: relative;
|
|
492
574
|
}
|
|
493
|
-
.article-item .icon[data-v-
|
|
575
|
+
.article-item .icon[data-v-4ebe06df] {
|
|
494
576
|
width: 14px;
|
|
495
577
|
-webkit-user-select: none;
|
|
496
578
|
-moz-user-select: none;
|
|
@@ -500,10 +582,9 @@
|
|
|
500
582
|
top: 0;
|
|
501
583
|
right: 0;
|
|
502
584
|
color: #b7b7b7;
|
|
503
|
-
|
|
504
|
-
transform: translate(50%, -50%);
|
|
585
|
+
transform: translate(50%, -50%);
|
|
505
586
|
}
|
|
506
|
-
.article-item img[data-v-
|
|
587
|
+
.article-item img[data-v-4ebe06df] {
|
|
507
588
|
width: 80px;
|
|
508
589
|
height: 80px;
|
|
509
590
|
-o-object-fit: cover;
|
|
@@ -511,12 +592,12 @@
|
|
|
511
592
|
margin-right: 12px;
|
|
512
593
|
flex-shrink: 0;
|
|
513
594
|
}
|
|
514
|
-
.article-item .article-item_right[data-v-
|
|
595
|
+
.article-item .article-item_right[data-v-4ebe06df] {
|
|
515
596
|
display: flex;
|
|
516
597
|
flex-direction: column;
|
|
517
598
|
justify-content: space-between;
|
|
518
599
|
}
|
|
519
|
-
.article-item .article-item_right .name[data-v-
|
|
600
|
+
.article-item .article-item_right .name[data-v-4ebe06df] {
|
|
520
601
|
font-size: 16px;
|
|
521
602
|
margin-top: 5px;
|
|
522
603
|
line-height: 22px;
|
|
@@ -526,7 +607,7 @@
|
|
|
526
607
|
overflow: hidden;
|
|
527
608
|
text-overflow: ellipsis;
|
|
528
609
|
}
|
|
529
|
-
.article-item .article-item_right .score[data-v-
|
|
610
|
+
.article-item .article-item_right .score[data-v-4ebe06df] {
|
|
530
611
|
color: #999999;
|
|
531
612
|
line-height: 17px;
|
|
532
613
|
font-size: 12px;
|
|
@@ -534,18 +615,18 @@
|
|
|
534
615
|
align-items: center;
|
|
535
616
|
margin-bottom: 6px;
|
|
536
617
|
}
|
|
537
|
-
.article-item .article-item_right .score span[data-v-
|
|
618
|
+
.article-item .article-item_right .score span[data-v-4ebe06df]:nth-child(2) {
|
|
538
619
|
margin-left: 10px;
|
|
539
620
|
}
|
|
540
|
-
.article-item .article-item_right .score span[data-v-
|
|
621
|
+
.article-item .article-item_right .score span[data-v-4ebe06df]:nth-child(3) {
|
|
541
622
|
margin-left: 10px;
|
|
542
623
|
}
|
|
543
|
-
.article-item .article-item_right .price[data-v-
|
|
624
|
+
.article-item .article-item_right .price[data-v-4ebe06df] {
|
|
544
625
|
color: #ff5a25;
|
|
545
626
|
font-size: 16px;
|
|
546
627
|
margin-top: 6px;
|
|
547
628
|
}
|
|
548
|
-
.article-item .article-bg[data-v-
|
|
629
|
+
.article-item .article-bg[data-v-4ebe06df] {
|
|
549
630
|
position: absolute;
|
|
550
631
|
width: 440px;
|
|
551
632
|
height: 60px;
|
|
@@ -560,7 +641,7 @@
|
|
|
560
641
|
-webkit-backdrop-filter: blur(3px);
|
|
561
642
|
backdrop-filter: blur(3px);
|
|
562
643
|
}
|
|
563
|
-
.article-item .article-bg-height[data-v-
|
|
644
|
+
.article-item .article-bg-height[data-v-4ebe06df] {
|
|
564
645
|
height: 80px;
|
|
565
646
|
line-height: 80px;
|
|
566
647
|
}
|
|
@@ -575,10 +656,6 @@
|
|
|
575
656
|
}
|
|
576
657
|
.editor mdd-topic {
|
|
577
658
|
pointer-events: none;
|
|
578
|
-
-webkit-user-select: none;
|
|
579
|
-
-moz-user-select: none;
|
|
580
|
-
-ms-user-select: none;
|
|
581
|
-
user-select: none;
|
|
582
659
|
color: #5288F6;
|
|
583
660
|
}
|
|
584
661
|
.editor ol,
|
|
@@ -686,8 +763,7 @@
|
|
|
686
763
|
width: 440px;
|
|
687
764
|
height: 100%;
|
|
688
765
|
left: 50%;
|
|
689
|
-
|
|
690
|
-
transform: translateX(-50%);
|
|
766
|
+
transform: translateX(-50%);
|
|
691
767
|
line-height: 25px;
|
|
692
768
|
font-size: 18px;
|
|
693
769
|
z-index: 1;
|
|
@@ -718,8 +794,7 @@
|
|
|
718
794
|
color: #fff;
|
|
719
795
|
z-index: 1;
|
|
720
796
|
left: 50%;
|
|
721
|
-
|
|
722
|
-
transform: translateX(-50%);
|
|
797
|
+
transform: translateX(-50%);
|
|
723
798
|
width: 90px;
|
|
724
799
|
line-height: 32px;
|
|
725
800
|
height: 32px;
|
|
@@ -746,8 +821,7 @@
|
|
|
746
821
|
line-height: 32px;
|
|
747
822
|
border-radius: 4px;
|
|
748
823
|
left: 50%;
|
|
749
|
-
|
|
750
|
-
transform: translateX(-50%);
|
|
824
|
+
transform: translateX(-50%);
|
|
751
825
|
}
|
|
752
826
|
.editor #editor-content .halo-img-content .desc-input-wrap {
|
|
753
827
|
margin-top: 20px;
|
|
@@ -779,8 +853,7 @@
|
|
|
779
853
|
text-align: center;
|
|
780
854
|
position: absolute;
|
|
781
855
|
top: 0;
|
|
782
|
-
|
|
783
|
-
transform: translate(-40%, -50%);
|
|
856
|
+
transform: translate(-40%, -50%);
|
|
784
857
|
}
|
|
785
858
|
.editor #editor-content .halo-img-content .halo-picture-area {
|
|
786
859
|
display: inline-block;
|
|
@@ -793,8 +866,87 @@
|
|
|
793
866
|
}
|
|
794
867
|
.editor #editor-content .halo-img-content .no-upload,
|
|
795
868
|
.editor #editor-content .halo-img-content .upload-fail {
|
|
796
|
-
|
|
797
|
-
|
|
869
|
+
filter: brightness(0.5);
|
|
870
|
+
}
|
|
871
|
+
.editor #editor-content .halo-modify-content {
|
|
872
|
+
position: relative;
|
|
873
|
+
text-align: center;
|
|
874
|
+
outline: none;
|
|
875
|
+
}
|
|
876
|
+
.editor #editor-content .halo-modify-content .img-loading,
|
|
877
|
+
.editor #editor-content .halo-modify-content .img-fail {
|
|
878
|
+
position: absolute;
|
|
879
|
+
display: flex;
|
|
880
|
+
align-items: center;
|
|
881
|
+
justify-content: center;
|
|
882
|
+
top: 0;
|
|
883
|
+
width: 440px;
|
|
884
|
+
height: 100%;
|
|
885
|
+
left: 50%;
|
|
886
|
+
transform: translateX(-50%);
|
|
887
|
+
line-height: 25px;
|
|
888
|
+
font-size: 18px;
|
|
889
|
+
z-index: 1;
|
|
890
|
+
opacity: 0.9;
|
|
891
|
+
color: #fff;
|
|
892
|
+
-webkit-user-select: none;
|
|
893
|
+
-moz-user-select: none;
|
|
894
|
+
-ms-user-select: none;
|
|
895
|
+
user-select: none;
|
|
896
|
+
}
|
|
897
|
+
.editor #editor-content .halo-modify-content .img-loading .img-loading-icon,
|
|
898
|
+
.editor #editor-content .halo-modify-content .img-fail .img-loading-icon {
|
|
899
|
+
width: 74px;
|
|
900
|
+
margin-left: 40px;
|
|
901
|
+
}
|
|
902
|
+
.editor #editor-content .halo-modify-content .img-loading .img-loading-tip,
|
|
903
|
+
.editor #editor-content .halo-modify-content .img-fail .img-loading-tip {
|
|
904
|
+
position: relative;
|
|
905
|
+
left: -60px;
|
|
906
|
+
top: 2px;
|
|
907
|
+
}
|
|
908
|
+
.editor #editor-content .halo-modify-content .img-again {
|
|
909
|
+
position: absolute;
|
|
910
|
+
left: 175px;
|
|
911
|
+
bottom: 60px;
|
|
912
|
+
font-size: 14px;
|
|
913
|
+
font-weight: 400;
|
|
914
|
+
color: #fff;
|
|
915
|
+
z-index: 1;
|
|
916
|
+
left: 50%;
|
|
917
|
+
transform: translateX(-50%);
|
|
918
|
+
width: 90px;
|
|
919
|
+
line-height: 32px;
|
|
920
|
+
height: 32px;
|
|
921
|
+
border-radius: 4px;
|
|
922
|
+
background: rgba(0, 0, 0, 0.5);
|
|
923
|
+
-webkit-user-select: none;
|
|
924
|
+
-moz-user-select: none;
|
|
925
|
+
-ms-user-select: none;
|
|
926
|
+
user-select: none;
|
|
927
|
+
cursor: pointer;
|
|
928
|
+
}
|
|
929
|
+
.editor #editor-content .halo-modify-content .img-replace {
|
|
930
|
+
display: none;
|
|
931
|
+
}
|
|
932
|
+
.editor #editor-content .halo-modify-content .desc-input-wrap {
|
|
933
|
+
display: none;
|
|
934
|
+
}
|
|
935
|
+
.editor #editor-content .halo-modify-content .img-delete {
|
|
936
|
+
display: none;
|
|
937
|
+
}
|
|
938
|
+
.editor #editor-content .halo-modify-content .halo-modify-area {
|
|
939
|
+
display: inline-block;
|
|
940
|
+
width: 440px;
|
|
941
|
+
min-height: 150px;
|
|
942
|
+
margin: 5px 0;
|
|
943
|
+
}
|
|
944
|
+
.editor #editor-content .halo-modify-content .halo-modify-area:focus {
|
|
945
|
+
outline: 2px solid #1a74ff;
|
|
946
|
+
}
|
|
947
|
+
.editor #editor-content .halo-modify-content .no-upload,
|
|
948
|
+
.editor #editor-content .halo-modify-content .upload-fail {
|
|
949
|
+
filter: brightness(0.5);
|
|
798
950
|
}
|
|
799
951
|
.editor #editor-content .halo-select {
|
|
800
952
|
outline: 2px solid #1a74ff;
|
|
@@ -811,8 +963,7 @@
|
|
|
811
963
|
font-size: 18px;
|
|
812
964
|
left: calc(50% + 250px);
|
|
813
965
|
top: 0;
|
|
814
|
-
|
|
815
|
-
transform: translate(-50%, -50%);
|
|
966
|
+
transform: translate(-50%, -50%);
|
|
816
967
|
}
|
|
817
968
|
.editor #editor-content .video-cover-replace {
|
|
818
969
|
cursor: pointer;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haluo/biz",
|
|
3
3
|
"description": "rich text",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.39",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/haluo-biz.js",
|
|
7
7
|
"main": "./dist/haluo-biz.umd.cjs",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"dev": "vite",
|
|
20
20
|
"build": "vue-tsc --noEmit && vite build",
|
|
21
21
|
"build:watch": "vue-tsc --noEmit && vite build --watch",
|
|
22
|
-
"preview": "vite preview"
|
|
22
|
+
"preview": "vite preview",
|
|
23
|
+
"pub": "npm publish"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"element-plus": "^2.2.28",
|