MainContainerWrap.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. width: 160,
  15. },
  16. {
  17. xtype: 'tabpanel',
  18. region: 'center',
  19. flex: 1,
  20. id:'main-tab-panel',
  21. reference: 'mainTabPanel',
  22. cls: 'main-right-tabpanel',
  23. itemId: 'contentPanel',
  24. defaults: {
  25. closable: true,
  26. margin: 10
  27. },
  28. plugins: [new Ext.ux.TabCloseMenu({
  29. closeTabText: '关闭',
  30. closeAllTabsText: '关闭全部',
  31. closeOthersTabsText: '关闭其他'
  32. })],
  33. items: [
  34. {
  35. xtype: 'home',
  36. title: '首页',
  37. closable: false
  38. }
  39. ]
  40. }
  41. ],
  42. });