87,989
社区成员
发帖
与我相关
我的任务
分享Ext.define('MyApp.view.ui.MyViewport', {
extend: 'Ext.container.Viewport',
layout: {
type: 'border'
},
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'panel',
autoScroll: true,
layout: {
align: 'stretch',
type: 'vbox'
},
title: '',
flex: 4,
region: 'center',
items: [
{
xtype: 'panel',
height: 700,
title: '上'
},
{
xtype: 'panel',
height: 800,
title: '下',
flex: 1
}
]
},
{
xtype: 'panel',
width: 150,
title: '',
flex: 1,
region: 'west'
},
{
xtype: 'panel',
width: 150,
title: '',
flex: 1,
region: 'east'
}
]
});
me.callParent(arguments);
}
});
Ext.define('MyApp.view.ui.MyViewport', {
extend: 'Ext.container.Viewport',
layout: {
type: 'border'
},
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'panel',
id: 'PanelMidlle',
autoScroll: true,
title: 'PanelMiddle',
region: 'center',
items: [
{
xtype: 'panel',
height: 306,
id: 'PanelInsideMiddle',
width: 569,
title: 'PanelInsideMiddle'
}
]
},
{
xtype: 'panel',
height: 150,
id: 'PanelNorth',
title: 'PanelNorth',
region: 'north'
},
{
xtype: 'panel',
height: 150,
id: 'PanelSouth',
title: 'PanelSouth',
region: 'south'
}
]
});
me.callParent(arguments);
}
});