@haluo/biz 2.0.20 → 2.0.21
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/dist/haluo-biz.js +5 -2
- package/dist/haluo-biz.umd.cjs +5 -2
- package/package.json +1 -1
package/dist/haluo-biz.js
CHANGED
|
@@ -5613,7 +5613,7 @@ const _sfc_main = {
|
|
|
5613
5613
|
} else {
|
|
5614
5614
|
const pre = p.previousElementSibling;
|
|
5615
5615
|
const isBlock = (pre == null ? void 0 : pre.classList.contains("halo-paragraph")) || false;
|
|
5616
|
-
if (isBlock && (!pre.
|
|
5616
|
+
if (isBlock && (!pre.textContent || pre.innerText === "\n")) {
|
|
5617
5617
|
pre.remove();
|
|
5618
5618
|
}
|
|
5619
5619
|
}
|
|
@@ -5711,11 +5711,14 @@ const _sfc_main = {
|
|
|
5711
5711
|
if (me2.moverClasses.includes(p.className)) {
|
|
5712
5712
|
me2.setDragMove(p);
|
|
5713
5713
|
const area = p.firstChild;
|
|
5714
|
-
p.onclick = function() {
|
|
5714
|
+
p.onclick = function(e) {
|
|
5715
5715
|
var _a;
|
|
5716
5716
|
if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
|
|
5717
5717
|
me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
|
|
5718
5718
|
}
|
|
5719
|
+
if (e.target.className.includes("desc-input")) {
|
|
5720
|
+
return;
|
|
5721
|
+
}
|
|
5719
5722
|
me2.selectDom = p;
|
|
5720
5723
|
const selected = document.querySelector(".halo-select");
|
|
5721
5724
|
selected && selected.classList.remove("halo-select");
|
package/dist/haluo-biz.umd.cjs
CHANGED
|
@@ -5615,7 +5615,7 @@
|
|
|
5615
5615
|
} else {
|
|
5616
5616
|
const pre = p.previousElementSibling;
|
|
5617
5617
|
const isBlock = (pre == null ? void 0 : pre.classList.contains("halo-paragraph")) || false;
|
|
5618
|
-
if (isBlock && (!pre.
|
|
5618
|
+
if (isBlock && (!pre.textContent || pre.innerText === "\n")) {
|
|
5619
5619
|
pre.remove();
|
|
5620
5620
|
}
|
|
5621
5621
|
}
|
|
@@ -5713,11 +5713,14 @@
|
|
|
5713
5713
|
if (me2.moverClasses.includes(p.className)) {
|
|
5714
5714
|
me2.setDragMove(p);
|
|
5715
5715
|
const area = p.firstChild;
|
|
5716
|
-
p.onclick = function() {
|
|
5716
|
+
p.onclick = function(e) {
|
|
5717
5717
|
var _a;
|
|
5718
5718
|
if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
|
|
5719
5719
|
me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
|
|
5720
5720
|
}
|
|
5721
|
+
if (e.target.className.includes("desc-input")) {
|
|
5722
|
+
return;
|
|
5723
|
+
}
|
|
5721
5724
|
me2.selectDom = p;
|
|
5722
5725
|
const selected = document.querySelector(".halo-select");
|
|
5723
5726
|
selected && selected.classList.remove("halo-select");
|