Ext.define('erp.view.oa.doc.DOCManage',{ extend: 'Ext.Viewport', layout: 'fit', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ id:'desk', layout: 'border', bodyBorder:false, items: [{ region: 'north', xtype : 'pageHeader' },{ region:'center', layout:'border', items: [{ width: 250, bodyPadding: 5, region:'west', xtype:'erpDocumentTreePanel', bodyStyle:'background-color:#FAFAFA;', tbar:[{ xtype:'buttongroup', columns:4, cls:'button-group', width: 250, border:0, items:[{ xtype:'button', cls:"button primary", id:'treeadd', text:' 创建 ' },{ xtype:'button', cls:"button", text:' 编辑 ', id:'treeupdate' },{ xtype:'button', cls:"button", id:'treedelete', text:' 删除 ' }] }] }, { xtyle:'border:none;', flex: 1, region:'center', layout:'border', items:[{ region: 'center', xtype:'erpDocPanel', },{ xtype:'erpDocTabPanel', region:'south' }] } ]}, { xtype: 'pageBottom', region: 'south', height: 13 }] }] }); me.callParent(arguments); } });