@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 +1 -1
- package/es/index.js +1 -1
- package/es/rich-text-editor/types.d.ts +3 -3
- package/es/rich-text-editor/useExtensions.js +1 -13
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/rich-text-editor/types.d.ts +3 -3
- package/lib/rich-text-editor/useExtensions.js +1 -13
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -30,11 +30,11 @@ export interface HashTagData {
|
|
|
30
30
|
* HashTagExitEvent
|
|
31
31
|
* - 功能:在 `hashTag-exit` 事件中传递退出原因与是否为非连续输入。
|
|
32
32
|
* - 字段说明:
|
|
33
|
-
* - reason: 退出原因;可取值 'space' | '
|
|
34
|
-
* - nonContiguous:
|
|
33
|
+
* - reason: 退出原因;可取值 'space' | 'unknown'。
|
|
34
|
+
* - nonContiguous: 是否属于“非连续输入”导致的退出(如空格)。
|
|
35
35
|
*/
|
|
36
36
|
export interface HashTagExitEvent {
|
|
37
|
-
reason: 'space' | '
|
|
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"
|
|
84
|
+
nonContiguous: exitCause === "space"
|
|
97
85
|
};
|
|
98
86
|
emit("hashTag-exit", payload);
|
|
99
87
|
}
|
package/lib/index.d.ts
CHANGED
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.
|
|
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' | '
|
|
34
|
-
* - nonContiguous:
|
|
33
|
+
* - reason: 退出原因;可取值 'space' | 'unknown'。
|
|
34
|
+
* - nonContiguous: 是否属于“非连续输入”导致的退出(如空格)。
|
|
35
35
|
*/
|
|
36
36
|
export interface HashTagExitEvent {
|
|
37
|
-
reason: 'space' | '
|
|
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"
|
|
116
|
+
nonContiguous: exitCause === "space"
|
|
129
117
|
};
|
|
130
118
|
emit("hashTag-exit", payload);
|
|
131
119
|
}
|