MainContainerWrap.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Ext.define('saas.view.main.MainContainerWrap', {
  2. extend: 'Ext.container.Container',
  3. xtype: 'maincontainerwrap',
  4. requires: [
  5. 'Ext.tab.Panel'
  6. ],
  7. id: 'main-view-detail-wrap',
  8. flex: 1,
  9. layout: 'border',
  10. items: [
  11. {
  12. xtype: 'main-navigation',
  13. region: 'west',
  14. bind: {
  15. width: '{navWidth}'
  16. }
  17. },
  18. {
  19. xtype: 'tabpanel',
  20. region: 'center',
  21. flex: 1,
  22. id:'main-tab-panel',
  23. reference: 'mainTabPanel',
  24. cls: 'main-right-tabpanel',
  25. itemId: 'contentPanel',
  26. defaults: {
  27. closable: true,
  28. margin: 16
  29. },
  30. plugins: [new Ext.ux.TabCloseMenu({
  31. closeTabText: '关闭当前页',
  32. closeAllTabsText: '关闭全部页',
  33. closeOthersTabsText: '关闭其他页'
  34. })],
  35. items: [{
  36. xtype: 'core-tab-panel',
  37. iconCls: 'x-sa sa-home',
  38. title: '首页',
  39. closable: false,
  40. items: [{
  41. xtype: 'home',
  42. }]
  43. }]
  44. }
  45. ],
  46. });