@cgboiler/biz-basic 1.0.41 → 1.0.42

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/es/index.d.ts CHANGED
@@ -5,6 +5,6 @@ declare namespace _default {
5
5
  }
6
6
  export default _default;
7
7
  export function install(app: any): void;
8
- export const version: "1.0.40";
8
+ export const version: "1.0.41";
9
9
  import RichTextEditor from './rich-text-editor';
10
10
  export { RichTextEditor };
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import RichTextEditor from "./rich-text-editor";
2
- const version = "1.0.40";
2
+ const version = "1.0.41";
3
3
  function install(app) {
4
4
  const components = [
5
5
  RichTextEditor
@@ -30,11 +30,11 @@ export interface HashTagData {
30
30
  * HashTagExitEvent
31
31
  * - 功能:在 `hashTag-exit` 事件中传递退出原因与是否为非连续输入。
32
32
  * - 字段说明:
33
- * - reason: 退出原因;可取值 'space' | 'enter' | 'tab' | 'escape' | 'unknown'。
34
- * - nonContiguous: 是否属于“非连续输入”导致的退出(如空格、回车、Tab)。
33
+ * - reason: 退出原因;可取值 'space' | 'unknown'。
34
+ * - nonContiguous: 是否属于“非连续输入”导致的退出(如空格)。
35
35
  */
36
36
  export interface HashTagExitEvent {
37
- reason: 'space' | 'enter' | 'tab' | 'escape' | 'unknown';
37
+ reason: 'space' | 'unknown';
38
38
  nonContiguous: boolean;
39
39
  }
40
40
  export declare const richTextEditorProps: {
@@ -70,22 +70,10 @@ function useExtensions({ props, emit }) {
70
70
  * - 异常:无。
71
71
  */
72
72
  onKeyDown({ event }) {
73
- if (event.key === "Enter") {
74
- exitCause = "enter";
75
- return false;
76
- }
77
73
  if (event.key === " ") {
78
74
  exitCause = "space";
79
75
  return false;
80
76
  }
81
- if (event.key === "Tab") {
82
- exitCause = "tab";
83
- return false;
84
- }
85
- if (event.key === "Escape") {
86
- exitCause = "escape";
87
- return false;
88
- }
89
77
  return false;
90
78
  },
91
79
  onExit() {
@@ -93,7 +81,7 @@ function useExtensions({ props, emit }) {
93
81
  activeEditor = null;
94
82
  const payload = {
95
83
  reason: exitCause,
96
- nonContiguous: exitCause === "space" || exitCause === "enter" || exitCause === "tab"
84
+ nonContiguous: exitCause === "space"
97
85
  };
98
86
  emit("hashTag-exit", payload);
99
87
  }
package/lib/index.d.ts CHANGED
@@ -5,6 +5,6 @@ declare namespace _default {
5
5
  }
6
6
  export default _default;
7
7
  export function install(app: any): void;
8
- export const version: "1.0.40";
8
+ export const version: "1.0.41";
9
9
  import RichTextEditor from './rich-text-editor';
10
10
  export { RichTextEditor };
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ __export(stdin_exports, {
36
36
  module.exports = __toCommonJS(stdin_exports);
37
37
  var import_rich_text_editor = __toESM(require("./rich-text-editor"));
38
38
  __reExport(stdin_exports, require("./rich-text-editor"), module.exports);
39
- const version = "1.0.40";
39
+ const version = "1.0.41";
40
40
  function install(app) {
41
41
  const components = [
42
42
  import_rich_text_editor.default
@@ -30,11 +30,11 @@ export interface HashTagData {
30
30
  * HashTagExitEvent
31
31
  * - 功能:在 `hashTag-exit` 事件中传递退出原因与是否为非连续输入。
32
32
  * - 字段说明:
33
- * - reason: 退出原因;可取值 'space' | 'enter' | 'tab' | 'escape' | 'unknown'。
34
- * - nonContiguous: 是否属于“非连续输入”导致的退出(如空格、回车、Tab)。
33
+ * - reason: 退出原因;可取值 'space' | 'unknown'。
34
+ * - nonContiguous: 是否属于“非连续输入”导致的退出(如空格)。
35
35
  */
36
36
  export interface HashTagExitEvent {
37
- reason: 'space' | 'enter' | 'tab' | 'escape' | 'unknown';
37
+ reason: 'space' | 'unknown';
38
38
  nonContiguous: boolean;
39
39
  }
40
40
  export declare const richTextEditorProps: {
@@ -102,22 +102,10 @@ function useExtensions({ props, emit }) {
102
102
  * - 异常:无。
103
103
  */
104
104
  onKeyDown({ event }) {
105
- if (event.key === "Enter") {
106
- exitCause = "enter";
107
- return false;
108
- }
109
105
  if (event.key === " ") {
110
106
  exitCause = "space";
111
107
  return false;
112
108
  }
113
- if (event.key === "Tab") {
114
- exitCause = "tab";
115
- return false;
116
- }
117
- if (event.key === "Escape") {
118
- exitCause = "escape";
119
- return false;
120
- }
121
109
  return false;
122
110
  },
123
111
  onExit() {
@@ -125,7 +113,7 @@ function useExtensions({ props, emit }) {
125
113
  activeEditor = null;
126
114
  const payload = {
127
115
  reason: exitCause,
128
- nonContiguous: exitCause === "space" || exitCause === "enter" || exitCause === "tab"
116
+ nonContiguous: exitCause === "space"
129
117
  };
130
118
  emit("hashTag-exit", payload);
131
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgboiler/biz-basic",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",