@hailin-zheng/editor-core 2.2.41 → 2.2.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/editor.css +41 -0
- package/index-cjs.js +241 -119
- package/index-cjs.js.map +1 -1
- package/index.js +241 -119
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +3 -2
- package/med_editor/framework/util/common-util.d.ts +1 -0
- package/med_editor/framework/vnode/editor-list-vnode.d.ts +18 -0
- package/package.json +1 -1
@@ -76,7 +76,9 @@ export declare class DocEditor {
|
|
76
76
|
* 载入文档
|
77
77
|
* @param data json对象、json字符串、DocumentElement对象
|
78
78
|
*/
|
79
|
-
loadDoc(data: any | DocumentElement
|
79
|
+
loadDoc(data: any | DocumentElement, options?: {
|
80
|
+
autoScrollToTop?: boolean;
|
81
|
+
}): void;
|
80
82
|
/**
|
81
83
|
* 刷新文档,重新测量并设置光标等
|
82
84
|
* @returns
|
@@ -465,7 +467,6 @@ export declare class DocEditor {
|
|
465
467
|
* @private
|
466
468
|
*/
|
467
469
|
private renderDataListVNode;
|
468
|
-
private resizePosition;
|
469
470
|
private renderCalendar;
|
470
471
|
private renderContextmenu;
|
471
472
|
/**
|
@@ -72,6 +72,7 @@ export declare class CommonUtil {
|
|
72
72
|
static isEqual(a: any, b: any): boolean;
|
73
73
|
static getValue(val: any, defaultValue: any): any;
|
74
74
|
static getKeyCombination(event: KeyboardEvent): string;
|
75
|
+
static resizePosition(elm: HTMLElement, position: Rect, scale: number): void;
|
75
76
|
}
|
76
77
|
declare type AnyFunction = (...args: any[]) => any;
|
77
78
|
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DocEditor } from "src/med_editor/doc-editor";
|
2
|
+
import { DataElementList } from "../impl";
|
3
|
+
import { EditorVNodeObject } from "../render-define";
|
4
|
+
import { DataEleListOption } from "../element-props";
|
5
|
+
import { ISignal } from "../../editor-core";
|
6
|
+
export declare class EditorListVNode {
|
7
|
+
editor: DocEditor;
|
8
|
+
currentEle: DataElementList;
|
9
|
+
currentOpenStatus: ISignal<'close' | 'open' | 'init'>;
|
10
|
+
currentOptions: Array<DataEleListOption & {
|
11
|
+
checked: boolean;
|
12
|
+
}>;
|
13
|
+
changed: ISignal<string | null>;
|
14
|
+
constructor(editor: DocEditor);
|
15
|
+
clear(): void;
|
16
|
+
private init;
|
17
|
+
render(): EditorVNodeObject | null;
|
18
|
+
}
|