MainContainerWrap.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }), new Ext.ux.TabReorderer()],
  34. items: [{
  35. iconCls: 'x-sa sa-home',
  36. title: '首页',
  37. closable: false,
  38. reorderable: false,
  39. // margin: '16 0 16 16',
  40. // scrollable: true,
  41. // bodyPadding: '0 16 0 0',
  42. items: [{
  43. xtype: 'home',
  44. }]
  45. }]
  46. }
  47. ],
  48. });