修改大纲树的布局为 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

@ -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: {

View File

@ -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',