Skip to content

Commit b9c3a46

Browse files
author
taojiu
committed
refactor(engine): 移除概览插件
- 从 package.json 中删除了 @felce/lowcode-plugin-outline-pane 依赖 - 从 engine-core.ts 中移除了 OutlinePlugin 的导入和注册 - 删除了与 OutlinePlugin 相关的初始化和清理逻辑
1 parent ed79a7a commit b9c3a46

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

packages/engine/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@felce/lowcode-editor-skeleton": "1.5.0-beta.5",
2222
"@felce/lowcode-plugin-command": "1.5.0-beta.5",
2323
"@felce/lowcode-plugin-designer": "1.5.0-beta.5",
24-
"@felce/lowcode-plugin-outline-pane": "1.5.0-beta.5",
2524
"@felce/lowcode-shell": "1.5.0-beta.5",
2625
"@felce/lowcode-types": "1.5.0-beta.5",
2726
"@felce/lowcode-utils": "1.5.0-beta.5",

packages/engine/src/engine-core.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ import { shellModelFactory } from './modules/shell-model-factory';
6767
import { builtinHotkey } from './inner-plugins/builtin-hotkey';
6868
import { defaultContextMenu } from './inner-plugins/default-context-menu';
6969
import { CommandPlugin } from '@felce/lowcode-plugin-command';
70-
import { OutlinePlugin } from '@felce/lowcode-plugin-outline-pane';
7170

7271
export * from './modules/skeleton-types';
7372
export * from './modules/designer-types';
@@ -81,7 +80,6 @@ async function registryInnerPlugin(
8180
// 注册一批内置插件
8281
const componentMetaParserPlugin = componentMetaParser(designer);
8382
const defaultPanelRegistryPlugin = defaultPanelRegistry(editor);
84-
await plugins.register(OutlinePlugin, {}, { autoInit: true });
8583
await plugins.register(componentMetaParserPlugin);
8684
await plugins.register(defaultPanelRegistryPlugin);
8785
await plugins.register(builtinHotkey);
@@ -90,7 +88,6 @@ async function registryInnerPlugin(
9088
await plugins.register(CommandPlugin, {});
9189

9290
return () => {
93-
plugins.delete(OutlinePlugin.pluginName);
9491
plugins.delete(componentMetaParserPlugin.pluginName);
9592
plugins.delete(defaultPanelRegistryPlugin.pluginName);
9693
plugins.delete(builtinHotkey.pluginName);

0 commit comments

Comments
 (0)