From 2ce965c8accd03d66a701c9accea904ec941188f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E7=A6=85?= Date: Wed, 22 Jul 2020 17:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=A7=E7=BA=B2=E6=A0=91?= =?UTF-8?q?=E7=9A=84=E5=B8=83=E5=B1=80=E4=B8=BA=20fixed=20=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E5=A4=A7=E7=BA=B2=E6=A0=91=E4=B8=AD=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E7=89=A9=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/src/editor/config.js | 35 +++++++++++---------- packages/editor-preset-general/src/index.ts | 9 ------ 2 files changed, 18 insertions(+), 26 deletions(-) diff --git a/packages/demo/src/editor/config.js b/packages/demo/src/editor/config.js index 9b1fcf08c..ebf7be410 100644 --- a/packages/demo/src/editor/config.js +++ b/packages/demo/src/editor/config.js @@ -28,7 +28,7 @@ export default { props: { align: 'right', }, - },*/ + }, */ { pluginKey: 'samplePreview', type: 'Custom', @@ -47,6 +47,19 @@ export default { }, ], leftArea: [ + { + pluginKey: 'outline', + type: 'PanelIcon', + props: { + align: 'top', + icon: 'shuxingkongjian', + description: '大纲树', + panelProps: { + area: 'leftFixedArea', + }, + }, + pluginProps: {}, + }, { pluginKey: 'componentsPane', type: 'PanelIcon', @@ -57,18 +70,6 @@ export default { }, pluginProps: {}, }, - { - pluginKey: 'outline', - type: 'PanelIcon', - props: { - align: 'top', - icon: 'shuxingkongjian', - description: '大纲树' - }, - pluginProps: { - - }, - }, { pluginKey: 'sourceEditor', type: 'PanelIcon', @@ -83,10 +84,10 @@ export default { hideTitleBar: true, maxHeight: 800, maxWidth: 1200, - title: "动作面板", - width: 600 + title: '动作面板', + width: 600, }, - } + }, }, { pluginKey: 'zhEn', @@ -104,7 +105,7 @@ export default { { pluginKey: 'variableBindDialog', }, - ] + ], }, shortCuts: [], lifeCycles: { diff --git a/packages/editor-preset-general/src/index.ts b/packages/editor-preset-general/src/index.ts index 4d6a340db..bb250bac9 100644 --- a/packages/editor-preset-general/src/index.ts +++ b/packages/editor-preset-general/src/index.ts @@ -30,15 +30,6 @@ skeleton.add({ type: 'Widget', content: DesignerPlugin, }); -skeleton.add({ - area: 'leftArea', - name: 'outlinePane', - type: 'PanelDock', - content: Outline, - panelProps: { - area: 'leftFixedArea', - }, -}); skeleton.add({ area: 'rightArea', name: 'settingsPane',