@haluo/biz 2.0.42-next.1 → 2.0.42-next.3

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
@@ -4487,7 +4487,7 @@ const _sfc_main$3 = {
4487
4487
  // 话题输入处理
4488
4488
  handleTopicInput(event) {
4489
4489
  var _a;
4490
- console.log(111);
4490
+ console.log(111, event.key, event);
4491
4491
  const activeElement = document.activeElement;
4492
4492
  if (activeElement && (activeElement.tagName === "INPUT" || activeElement.tagName === "TEXTAREA")) {
4493
4493
  return;
@@ -4532,16 +4532,13 @@ const _sfc_main$3 = {
4532
4532
  };
4533
4533
  this.showTopicPopover("hot", position, "", triggerInfo);
4534
4534
  }, 10);
4535
- } else if (this.shouldTriggerSearch(event.key)) {
4536
- console.log(222);
4537
- setTimeout(() => {
4538
- this.checkAndTriggerSearch(paragraph);
4539
- }, 10);
4540
4535
  } else {
4541
- this.hideTopicPopover();
4536
+ console.log(222);
4537
+ this.checkAndTriggerSearch(paragraph);
4542
4538
  }
4543
4539
  },
4544
4540
  shouldTriggerSearch(key) {
4541
+ console.log(key);
4545
4542
  return key.length === 1 || key === "Backspace" || key === "Delete";
4546
4543
  },
4547
4544
  checkAndTriggerSearch(paragraph) {
@@ -4486,7 +4486,7 @@
4486
4486
  // 话题输入处理
4487
4487
  handleTopicInput(event) {
4488
4488
  var _a;
4489
- console.log(111);
4489
+ console.log(111, event.key, event);
4490
4490
  const activeElement = document.activeElement;
4491
4491
  if (activeElement && (activeElement.tagName === "INPUT" || activeElement.tagName === "TEXTAREA")) {
4492
4492
  return;
@@ -4531,16 +4531,13 @@
4531
4531
  };
4532
4532
  this.showTopicPopover("hot", position, "", triggerInfo);
4533
4533
  }, 10);
4534
- } else if (this.shouldTriggerSearch(event.key)) {
4535
- console.log(222);
4536
- setTimeout(() => {
4537
- this.checkAndTriggerSearch(paragraph);
4538
- }, 10);
4539
4534
  } else {
4540
- this.hideTopicPopover();
4535
+ console.log(222);
4536
+ this.checkAndTriggerSearch(paragraph);
4541
4537
  }
4542
4538
  },
4543
4539
  shouldTriggerSearch(key) {
4540
+ console.log(key);
4544
4541
  return key.length === 1 || key === "Backspace" || key === "Delete";
4545
4542
  },
4546
4543
  checkAndTriggerSearch(paragraph) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haluo/biz",
3
3
  "description": "rich text",
4
- "version": "2.0.42-next.1",
4
+ "version": "2.0.42-next.3",
5
5
  "type": "module",
6
6
  "module": "./dist/haluo-biz.js",
7
7
  "main": "./dist/haluo-biz.umd.cjs",