From 586b0321ae361509d2de1031d69a638f2f056867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BA=91=E9=A3=9E?= Date: Fri, 31 Dec 2021 10:12:39 +0800 Subject: [PATCH] feat:export type --- src/editor/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/editor/index.ts b/src/editor/index.ts index 844de52..97c8d9a 100644 --- a/src/editor/index.ts +++ b/src/editor/index.ts @@ -1,5 +1,5 @@ import './assets/css/index.css' -import { IEditorOption } from './interface/Editor' +import { IEditorOption, IEditorResult } from './interface/Editor' import { IElement } from './interface/Element' import { Draw } from './core/draw/Draw' import { Command } from './core/command/Command' @@ -12,7 +12,7 @@ import { Register } from './core/register/Register' import { globalMenus } from './core/contextmenu/menus/GlobalMenus' import { ContextMenu } from './core/contextmenu/ContextMenu' import { tableMenus } from './core/contextmenu/menus/tableMenus' -import { IRegisterContextMenu } from './interface/contextmenu/ContextMenu' +import { IContextMenuContext, IRegisterContextMenu } from './interface/contextmenu/ContextMenu' import { EditorComponent } from './dataset/enum/Editor' import { EDITOR_COMPONENT } from './dataset/constant/Editor' @@ -85,5 +85,8 @@ export { // 对外类型 export type { IElement, + IEditorOption, + IEditorResult, + IContextMenuContext, IRegisterContextMenu } \ No newline at end of file