Skip to content

Commit 016d54b

Browse files
liujupingJackLian
authored andcommitted
feat(common): add some api to be compatible with old platforms
1 parent 6160056 commit 016d54b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

packages/shell/src/api/common.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ import {
5858
untracked as innerUntracked,
5959
computed as innerComputed,
6060
observer as innerObserver,
61+
action as innerAction,
62+
runInAction as innerRunInAction,
63+
engineConfig as innerEngineConfig,
6164
} from '@alilc/lowcode-editor-core';
6265
import { Dragon as ShellDragon } from '../model';
6366
import { ReactNode } from 'react';
@@ -302,6 +305,27 @@ class EditorCabin implements IPublicApiCommonEditorCabin {
302305
return innerObx;
303306
}
304307

308+
/**
309+
* @deprecated
310+
*/
311+
get action() {
312+
return innerAction;
313+
}
314+
315+
/**
316+
* @deprecated
317+
*/
318+
get engineConfig() {
319+
return innerEngineConfig;
320+
}
321+
322+
/**
323+
* @deprecated
324+
*/
325+
get runInAction() {
326+
return innerRunInAction;
327+
}
328+
305329
/**
306330
* @deprecated
307331
*/

0 commit comments

Comments
 (0)