@hailin-zheng/editor-core 2.2.25 → 2.2.27
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/index-cjs.js +109 -18
- package/index-cjs.js.map +1 -1
- package/index.js +109 -19
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +6 -0
- package/med_editor/framework/document-change.d.ts +13 -1
- package/med_editor/framework/element-props.d.ts +3 -2
- package/package.json +1 -1
@@ -158,6 +158,12 @@ export declare class DocEditor {
|
|
158
158
|
* @returns
|
159
159
|
*/
|
160
160
|
getDocSchema(): any;
|
161
|
+
/**
|
162
|
+
* 获取元素模型
|
163
|
+
* @param ele
|
164
|
+
* @returns
|
165
|
+
*/
|
166
|
+
getEleSchemaJSON(ele: Element): any;
|
161
167
|
getDocSchemaJSON(): string;
|
162
168
|
private menusData;
|
163
169
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DocumentInput, InputData } from "./document-input-cursor";
|
2
2
|
import { SelectionState } from "./selection/document-selection";
|
3
|
-
import { BlockContainerElement, Element, LeafElement, SelectionContentRange } from "./element-define";
|
3
|
+
import { BlockContainerElement, BranchElement, Element, LeafElement, SelectionContentRange } from "./element-define";
|
4
4
|
import { ParagraphElement, TableElement, TextGroupElement, TrackRunTypeEnum } from "./impl";
|
5
5
|
import { ParagraphNumberType, ParagraphProps, TextProps } from "./element-props";
|
6
6
|
import { ElementReader } from "./element-reader";
|
@@ -219,6 +219,13 @@ export declare class DocumentChange {
|
|
219
219
|
* @param destEleArray
|
220
220
|
*/
|
221
221
|
insertElement(targetElement: Element, targetOffset: number, destEleArray: Array<Element>): Element | null;
|
222
|
+
/**
|
223
|
+
* 校验容器是否允许插入元素
|
224
|
+
* @param container
|
225
|
+
* @param ele
|
226
|
+
* @returns
|
227
|
+
*/
|
228
|
+
canInsertElement(container: BranchElement, ele: Element): boolean;
|
222
229
|
/**
|
223
230
|
* 根据开始位置和结束位置,将字符切割成指定的区间
|
224
231
|
* @param text
|
@@ -271,6 +278,11 @@ export declare class DocumentChange {
|
|
271
278
|
* @private
|
272
279
|
*/
|
273
280
|
private handlePasteContent;
|
281
|
+
/**
|
282
|
+
* 处理表单模式下的粘贴事件
|
283
|
+
* @param data 要粘贴的元素
|
284
|
+
*/
|
285
|
+
handlePasteInFormEditMode(data: Array<Element>): void;
|
274
286
|
/**
|
275
287
|
* 复制单元格向另一个单元格粘贴
|
276
288
|
* @private
|
@@ -197,9 +197,9 @@ export declare class DataEleListProps extends DataEleBaseTextProps {
|
|
197
197
|
constructor();
|
198
198
|
options: Array<DataEleListOption>;
|
199
199
|
/**
|
200
|
-
*
|
200
|
+
* 是否持久化选项到病历文件里面
|
201
201
|
*/
|
202
|
-
|
202
|
+
persistItems: boolean;
|
203
203
|
dropDownStyle: 'DropDownList' | 'DropDown';
|
204
204
|
/**
|
205
205
|
* 是否允许多选
|
@@ -210,6 +210,7 @@ export declare class DataEleListProps extends DataEleBaseTextProps {
|
|
210
210
|
getSerializeProps(options: ViewOptions): any;
|
211
211
|
updateProps(props: DataEleListProps): void;
|
212
212
|
}
|
213
|
+
export declare function updatePartialProps(destProps: any, sourceProps: any): void;
|
213
214
|
export declare class CommContentProps extends INotifyPropertyChanged {
|
214
215
|
id: string;
|
215
216
|
createId: string;
|