MainContainerWrap.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. xtype: 'core-tab-panel',
  28. },
  29. plugins: [new Ext.ux.TabCloseMenu({
  30. closeTabText: '关闭当前页',
  31. closeAllTabsText: '关闭全部页',
  32. closeOthersTabsText: '关闭其他页'
  33. })],
  34. items: [{
  35. iconCls: 'x-sa sa-home',
  36. title: '首页',
  37. closable: false,
  38. items: [{
  39. xtype: 'home'
  40. }]
  41. }]
  42. }
  43. ],
  44. });