Main.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Ext.define('saas.view.main.Main', {
  2. extend: 'Ext.container.Container',
  3. xtype: 'main',
  4. requires: [
  5. 'Ext.list.Tree',
  6. 'Ext.Img'
  7. ],
  8. controller: 'main',
  9. viewModel: 'main',
  10. cls: 'main-ct',
  11. id: 'mainView',
  12. itemId: 'mainView',
  13. layout: {
  14. type: 'vbox',
  15. align: 'stretch'
  16. },
  17. items: [
  18. {
  19. xtype: 'toolbar',
  20. cls: 'main-headerbar shadow',
  21. height: 64,
  22. itemId: 'headerBar',
  23. items: [
  24. {
  25. xtype: 'component',
  26. reference: 'mainLogo',
  27. cls: 'main-logo-wrap',
  28. html: '<div class="main-logo"><img src="resources/images/default/logo-default.png">优企云服</div>',
  29. width: 160
  30. },
  31. {
  32. margin: '0 0 0 8',
  33. ui: 'header',
  34. iconCls:'x-fa fa-navicon',
  35. id: 'main-navigation-btn',
  36. handler: 'onToggleNavigationSize'
  37. },
  38. '->',
  39. {
  40. iconCls:'x-fa fa-search',
  41. ui: 'header',
  42. tooltip: 'See latest search'
  43. },
  44. {
  45. iconCls:'x-fa fa-bell',
  46. ui: 'header',
  47. tooltip: 'Check your messages'
  48. },
  49. {
  50. iconCls:'x-fa fa-question',
  51. ui: 'header',
  52. tooltip: 'Help / FAQ\'s'
  53. },
  54. {
  55. iconCls:'x-fa fa-th-large',
  56. ui: 'header',
  57. tooltip: 'See your profile'
  58. },
  59. {
  60. xtype: 'tbtext',
  61. text: 'administrator',
  62. cls: 'top-user-name'
  63. },
  64. {
  65. xtype: 'image',
  66. cls: 'header-right-profile-image',
  67. height: 35,
  68. width: 35,
  69. alt:'current user image',
  70. src: 'resources/images/default/user-profile-default.png'
  71. }
  72. ]
  73. },
  74. {
  75. xtype: 'maincontainerwrap'
  76. }
  77. ]
  78. });