@haluo/biz 2.0.19-beta.4 → 2.0.21-beta.1

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 CHANGED
@@ -5402,6 +5402,20 @@ const _sfc_main = {
5402
5402
  }
5403
5403
  e.preventDefault();
5404
5404
  }
5405
+ const bottom = document.body.clientHeight - e.clientY - 280;
5406
+ if (e.clientY < 310) {
5407
+ scrollBy({
5408
+ top: -20,
5409
+ left: 0,
5410
+ behavior: "smooth"
5411
+ });
5412
+ } else if (bottom < 100) {
5413
+ scrollBy({
5414
+ top: 20,
5415
+ left: 0,
5416
+ behavior: "smooth"
5417
+ });
5418
+ }
5405
5419
  };
5406
5420
  editorDom.ondrop = function(e) {
5407
5421
  if (me2.targetMove && me2.moverClasses.includes(me2.targetMove.className)) {
@@ -5613,7 +5627,7 @@ const _sfc_main = {
5613
5627
  } else {
5614
5628
  const pre = p.previousElementSibling;
5615
5629
  const isBlock = (pre == null ? void 0 : pre.classList.contains("halo-paragraph")) || false;
5616
- if (isBlock && (!pre.texContent || pre.innerText === "\n")) {
5630
+ if (isBlock && (!pre.textContent || pre.innerText === "\n")) {
5617
5631
  pre.remove();
5618
5632
  }
5619
5633
  }
@@ -5711,11 +5725,14 @@ const _sfc_main = {
5711
5725
  if (me2.moverClasses.includes(p.className)) {
5712
5726
  me2.setDragMove(p);
5713
5727
  const area = p.firstChild;
5714
- p.onclick = function() {
5728
+ p.onclick = function(e) {
5715
5729
  var _a;
5716
5730
  if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
5717
5731
  me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
5718
5732
  }
5733
+ if (e.target.className.includes("desc-input")) {
5734
+ return;
5735
+ }
5719
5736
  me2.selectDom = p;
5720
5737
  const selected = document.querySelector(".halo-select");
5721
5738
  selected && selected.classList.remove("halo-select");
@@ -5404,6 +5404,20 @@
5404
5404
  }
5405
5405
  e.preventDefault();
5406
5406
  }
5407
+ const bottom = document.body.clientHeight - e.clientY - 280;
5408
+ if (e.clientY < 310) {
5409
+ scrollBy({
5410
+ top: -20,
5411
+ left: 0,
5412
+ behavior: "smooth"
5413
+ });
5414
+ } else if (bottom < 100) {
5415
+ scrollBy({
5416
+ top: 20,
5417
+ left: 0,
5418
+ behavior: "smooth"
5419
+ });
5420
+ }
5407
5421
  };
5408
5422
  editorDom.ondrop = function(e) {
5409
5423
  if (me2.targetMove && me2.moverClasses.includes(me2.targetMove.className)) {
@@ -5615,7 +5629,7 @@
5615
5629
  } else {
5616
5630
  const pre = p.previousElementSibling;
5617
5631
  const isBlock = (pre == null ? void 0 : pre.classList.contains("halo-paragraph")) || false;
5618
- if (isBlock && (!pre.texContent || pre.innerText === "\n")) {
5632
+ if (isBlock && (!pre.textContent || pre.innerText === "\n")) {
5619
5633
  pre.remove();
5620
5634
  }
5621
5635
  }
@@ -5713,11 +5727,14 @@
5713
5727
  if (me2.moverClasses.includes(p.className)) {
5714
5728
  me2.setDragMove(p);
5715
5729
  const area = p.firstChild;
5716
- p.onclick = function() {
5730
+ p.onclick = function(e) {
5717
5731
  var _a;
5718
5732
  if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
5719
5733
  me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
5720
5734
  }
5735
+ if (e.target.className.includes("desc-input")) {
5736
+ return;
5737
+ }
5721
5738
  me2.selectDom = p;
5722
5739
  const selected = document.querySelector(".halo-select");
5723
5740
  selected && selected.classList.remove("halo-select");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haluo/biz",
3
3
  "description": "rich text",
4
- "version": "2.0.19-beta.4",
4
+ "version": "2.0.21-beta.1",
5
5
  "type": "module",
6
6
  "module": "./dist/haluo-biz.js",
7
7
  "main": "./dist/haluo-biz.umd.cjs",