feat(common): add some api to be compatible with old platforms

This commit is contained in:
liujuping 2023-04-17 16:35:57 +08:00 committed by 林熠
parent 6160056139
commit 016d54bdde

View File

@ -58,6 +58,9 @@ import {
untracked as innerUntracked,
computed as innerComputed,
observer as innerObserver,
action as innerAction,
runInAction as innerRunInAction,
engineConfig as innerEngineConfig,
} from '@alilc/lowcode-editor-core';
import { Dragon as ShellDragon } from '../model';
import { ReactNode } from 'react';
@ -302,6 +305,27 @@ class EditorCabin implements IPublicApiCommonEditorCabin {
return innerObx;
}
/**
* @deprecated
*/
get action() {
return innerAction;
}
/**
* @deprecated
*/
get engineConfig() {
return innerEngineConfig;
}
/**
* @deprecated
*/
get runInAction() {
return innerRunInAction;
}
/**
* @deprecated
*/