feat(vision-polyfill): add context as portal

This commit is contained in:
磬楠 2020-04-14 21:13:41 +08:00
parent f724487303
commit bd127309ff

View File

@ -9,7 +9,7 @@ import Symbols from './symbols';
import Skeleton from '@ali/lowcode-editor-skeleton'; import Skeleton from '@ali/lowcode-editor-skeleton';
import editor from './editor'; import editor from './editor';
import Exchange from './exchange'; import Exchange from './exchange';
import VisualEngineContext from './context';
import VisualManager from './base/visualManager'; import VisualManager from './base/visualManager';
function init(container?: Element) { function init(container?: Element) {
@ -37,6 +37,8 @@ const modules = {
VisualManager, VisualManager,
}; };
const context = new VisualEngineContext();
export { export {
/** /**
* VE.Popup * VE.Popup
@ -55,6 +57,7 @@ export {
/* Symbol 管理类 */ /* Symbol 管理类 */
Symbols, Symbols,
Exchange, Exchange,
context,
/** /**
* VE.init * VE.init
* *