zy-react-library 1.0.141 → 1.0.143

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.
@@ -1,4 +1,4 @@
1
- import type { Editor as WangEditorInstance } from "@wangeditor/editor";
1
+ import type { IDomEditor } from "@wangeditor/editor";
2
2
  import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
3
 
4
4
  export interface EditorProps {
@@ -12,7 +12,7 @@ export interface EditorProps {
12
12
 
13
13
  export interface EditorRef {
14
14
  /** 获取编辑器实例 */
15
- getEditorInstance: () => WangEditorInstance | null;
15
+ getEditorInstance: () => IDomEditor | null;
16
16
  /** 获取HTML内容 */
17
17
  getHtml: () => string | undefined;
18
18
  /** 设置HTML内容 */
@@ -25,6 +25,7 @@ function getService(service, getExtraParams = {}, transform) {
25
25
  pageSize,
26
26
  ...transformedFormData,
27
27
  ...extraParams,
28
+ menuPath: window.location.pathname,
28
29
  });
29
30
  // 返回数据
30
31
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.141",
4
+ "version": "1.0.143",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",