废话不多说,直接上代码:
js文件如下:
// Ext的panel
Ext.define('MyApp.view.misDetailPanel', {
extend: 'Ext.panel.Panel',
requires: [
'Ext.panel.Panel'
],
id: 'MisDetailPanel',
layout: 'border',
closable: true,
width:400,
height:300,
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'panel',
region: 'west',
id: 'misBaseInfo',
width: 200
},
{
xtype: 'panel',
flex: 1,
region: 'center',
id: 'misDailyInfo'
}
]
});
me.callParent(arguments);
}
});
// 创建界面
var win = Ext.create('M