修改大纲树的布局为 fixed 实现在大纲树中拖拽物料

This commit is contained in:
金禅 2020-07-22 17:24:55 +08:00
parent 9a1501cff2
commit 2ce965c8ac
2 changed files with 18 additions and 26 deletions

View File

@ -47,6 +47,19 @@ export default {
}, },
], ],
leftArea: [ leftArea: [
{
pluginKey: 'outline',
type: 'PanelIcon',
props: {
align: 'top',
icon: 'shuxingkongjian',
description: '大纲树',
panelProps: {
area: 'leftFixedArea',
},
},
pluginProps: {},
},
{ {
pluginKey: 'componentsPane', pluginKey: 'componentsPane',
type: 'PanelIcon', type: 'PanelIcon',
@ -57,18 +70,6 @@ export default {
}, },
pluginProps: {}, pluginProps: {},
}, },
{
pluginKey: 'outline',
type: 'PanelIcon',
props: {
align: 'top',
icon: 'shuxingkongjian',
description: '大纲树'
},
pluginProps: {
},
},
{ {
pluginKey: 'sourceEditor', pluginKey: 'sourceEditor',
type: 'PanelIcon', type: 'PanelIcon',
@ -83,10 +84,10 @@ export default {
hideTitleBar: true, hideTitleBar: true,
maxHeight: 800, maxHeight: 800,
maxWidth: 1200, maxWidth: 1200,
title: "动作面板", title: '动作面板',
width: 600 width: 600,
},
}, },
}
}, },
{ {
pluginKey: 'zhEn', pluginKey: 'zhEn',
@ -104,7 +105,7 @@ export default {
{ {
pluginKey: 'variableBindDialog', pluginKey: 'variableBindDialog',
}, },
] ],
}, },
shortCuts: [], shortCuts: [],
lifeCycles: { lifeCycles: {

View File

@ -30,15 +30,6 @@ skeleton.add({
type: 'Widget', type: 'Widget',
content: DesignerPlugin, content: DesignerPlugin,
}); });
skeleton.add({
area: 'leftArea',
name: 'outlinePane',
type: 'PanelDock',
content: Outline,
panelProps: {
area: 'leftFixedArea',
},
});
skeleton.add({ skeleton.add({
area: 'rightArea', area: 'rightArea',
name: 'settingsPane', name: 'settingsPane',