diff --git a/components/Editor/index.d.ts b/components/Editor/index.d.ts index 03017ab..bafc394 100644 --- a/components/Editor/index.d.ts +++ b/components/Editor/index.d.ts @@ -1,4 +1,4 @@ -import type { Editor as WangEditorInstance } from "@wangeditor/editor"; +import type { IDomEditor } from "@wangeditor/editor"; import type { ForwardRefExoticComponent, RefAttributes } from "react"; export interface EditorProps { @@ -12,7 +12,7 @@ export interface EditorProps { export interface EditorRef { /** 获取编辑器实例 */ - getEditorInstance: () => WangEditorInstance | null; + getEditorInstance: () => IDomEditor | null; /** 获取HTML内容 */ getHtml: () => string | undefined; /** 设置HTML内容 */