@linker-design-plus/tiny-peony 1.2.39 → 1.2.41
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/index.d.ts +15 -15
- package/dist/index.js +20 -20
- package/dist/index.mjs +1291 -1286
- package/dist/intersection/components/editor/editor.d.ts +9 -9
- package/dist/intersection/components/editor/index.d.ts +15 -15
- package/dist/typings/intersection/editor.d.ts +4 -4
- package/dist/utils/dom.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
realTime: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
textCount: {
|
|
15
11
|
type: NumberConstructor;
|
|
16
12
|
default: number;
|
|
@@ -55,6 +51,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
55
51
|
type: PropType<CSSProperties>;
|
|
56
52
|
default: () => {};
|
|
57
53
|
};
|
|
54
|
+
showPreTime: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
58
|
}>, {
|
|
59
59
|
action: import("vue").Ref<import("../../hooks/use-editor").EditorAction | undefined, import("../../hooks/use-editor").EditorAction | undefined>;
|
|
60
60
|
innerRender: () => JSX.Element;
|
|
@@ -109,10 +109,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
109
109
|
type: StringConstructor;
|
|
110
110
|
default: string;
|
|
111
111
|
};
|
|
112
|
-
realTime: {
|
|
113
|
-
type: StringConstructor;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
112
|
textCount: {
|
|
117
113
|
type: NumberConstructor;
|
|
118
114
|
default: number;
|
|
@@ -157,6 +153,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
157
153
|
type: PropType<CSSProperties>;
|
|
158
154
|
default: () => {};
|
|
159
155
|
};
|
|
156
|
+
showPreTime: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
160
|
}>> & Readonly<{
|
|
161
161
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
162
162
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
@@ -172,10 +172,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
172
172
|
showWordLimit: boolean;
|
|
173
173
|
simple: boolean;
|
|
174
174
|
preTime: string;
|
|
175
|
-
realTime: string;
|
|
176
175
|
textCount: number;
|
|
177
176
|
listenAnchorId: number;
|
|
178
177
|
listenMode: ListenModeEnum;
|
|
179
178
|
contentStyle: CSSProperties;
|
|
179
|
+
showPreTime: boolean;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
181
181
|
export default _default;
|
|
@@ -7,10 +7,6 @@ declare const EditorContainer: {
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
realTime: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
textCount: {
|
|
15
11
|
type: NumberConstructor;
|
|
16
12
|
default: number;
|
|
@@ -55,6 +51,10 @@ declare const EditorContainer: {
|
|
|
55
51
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
56
52
|
default: () => {};
|
|
57
53
|
};
|
|
54
|
+
showPreTime: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
58
|
}>> & Readonly<{
|
|
59
59
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
60
60
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
@@ -119,11 +119,11 @@ declare const EditorContainer: {
|
|
|
119
119
|
showWordLimit: boolean;
|
|
120
120
|
simple: boolean;
|
|
121
121
|
preTime: string;
|
|
122
|
-
realTime: string;
|
|
123
122
|
textCount: number;
|
|
124
123
|
listenAnchorId: number;
|
|
125
124
|
listenMode: import("../../..").ListenModeEnum;
|
|
126
125
|
contentStyle: import("vue").CSSProperties;
|
|
126
|
+
showPreTime: boolean;
|
|
127
127
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
128
128
|
P: {};
|
|
129
129
|
B: {};
|
|
@@ -136,10 +136,6 @@ declare const EditorContainer: {
|
|
|
136
136
|
type: StringConstructor;
|
|
137
137
|
default: string;
|
|
138
138
|
};
|
|
139
|
-
realTime: {
|
|
140
|
-
type: StringConstructor;
|
|
141
|
-
default: string;
|
|
142
|
-
};
|
|
143
139
|
textCount: {
|
|
144
140
|
type: NumberConstructor;
|
|
145
141
|
default: number;
|
|
@@ -184,6 +180,10 @@ declare const EditorContainer: {
|
|
|
184
180
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
185
181
|
default: () => {};
|
|
186
182
|
};
|
|
183
|
+
showPreTime: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
187
187
|
}>> & Readonly<{
|
|
188
188
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
189
189
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
@@ -242,11 +242,11 @@ declare const EditorContainer: {
|
|
|
242
242
|
showWordLimit: boolean;
|
|
243
243
|
simple: boolean;
|
|
244
244
|
preTime: string;
|
|
245
|
-
realTime: string;
|
|
246
245
|
textCount: number;
|
|
247
246
|
listenAnchorId: number;
|
|
248
247
|
listenMode: import("../../..").ListenModeEnum;
|
|
249
248
|
contentStyle: import("vue").CSSProperties;
|
|
249
|
+
showPreTime: boolean;
|
|
250
250
|
}>;
|
|
251
251
|
__isFragment?: never;
|
|
252
252
|
__isTeleport?: never;
|
|
@@ -256,10 +256,6 @@ declare const EditorContainer: {
|
|
|
256
256
|
type: StringConstructor;
|
|
257
257
|
default: string;
|
|
258
258
|
};
|
|
259
|
-
realTime: {
|
|
260
|
-
type: StringConstructor;
|
|
261
|
-
default: string;
|
|
262
|
-
};
|
|
263
259
|
textCount: {
|
|
264
260
|
type: NumberConstructor;
|
|
265
261
|
default: number;
|
|
@@ -304,6 +300,10 @@ declare const EditorContainer: {
|
|
|
304
300
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
305
301
|
default: () => {};
|
|
306
302
|
};
|
|
303
|
+
showPreTime: {
|
|
304
|
+
type: BooleanConstructor;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
307
307
|
}>> & Readonly<{
|
|
308
308
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
309
309
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
@@ -368,11 +368,11 @@ declare const EditorContainer: {
|
|
|
368
368
|
showWordLimit: boolean;
|
|
369
369
|
simple: boolean;
|
|
370
370
|
preTime: string;
|
|
371
|
-
realTime: string;
|
|
372
371
|
textCount: number;
|
|
373
372
|
listenAnchorId: number;
|
|
374
373
|
listenMode: import("../../..").ListenModeEnum;
|
|
375
374
|
contentStyle: import("vue").CSSProperties;
|
|
375
|
+
showPreTime: boolean;
|
|
376
376
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
377
377
|
install: (app: App, options?: Record<string, any>) => void;
|
|
378
378
|
};
|
|
@@ -4,10 +4,6 @@ export interface EditorComponentProps {
|
|
|
4
4
|
* 预计时长,按文字数量计算
|
|
5
5
|
*/
|
|
6
6
|
preTime: string;
|
|
7
|
-
/**
|
|
8
|
-
* 实际时长,按文字数量计算
|
|
9
|
-
*/
|
|
10
|
-
realTime: string;
|
|
11
7
|
/**
|
|
12
8
|
* 编辑器已输入文字数量
|
|
13
9
|
*/
|
|
@@ -36,4 +32,8 @@ export interface EditorComponentProps {
|
|
|
36
32
|
* 最大字数
|
|
37
33
|
*/
|
|
38
34
|
maxLength: number;
|
|
35
|
+
/**
|
|
36
|
+
* 是否显示预计时长
|
|
37
|
+
*/
|
|
38
|
+
showPreTime: boolean;
|
|
39
39
|
}
|
package/dist/utils/dom.d.ts
CHANGED
|
@@ -34,3 +34,4 @@ export declare const longestConsecutiveSubsequence: (text1: string, text2: strin
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const isCursorAtParagraphEnd: () => boolean;
|
|
36
36
|
export declare const ensureCaretInParagraph: (editor: HTMLElement) => void;
|
|
37
|
+
export declare const clearParagraphKeep: (pElm: HTMLElement, selection: Selection) => void;
|