MainContainerWrap.js 901 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. items: [
  29. {
  30. xtype: 'home',
  31. title: '首页',
  32. closable: false
  33. }
  34. ]
  35. }
  36. ],
  37. });