Ext.define('saas.view.main.Main', { extend: 'Ext.container.Container', xtype: 'main', requires: [ 'Ext.list.Tree', 'Ext.Img' ], controller: 'main', viewModel: 'main', cls: 'main-ct', id: 'mainView', itemId: 'mainView', layout: { type: 'vbox', align: 'stretch' }, items: [ { xtype: 'toolbar', cls: 'main-headerbar shadow', height: 64, itemId: 'headerBar', items: [ { xtype: 'component', reference: 'mainLogo', cls: 'main-logo-wrap', html: '', width: 160 }, { margin: '0 0 0 8', ui: 'header', iconCls:'x-fa fa-navicon', id: 'main-navigation-btn', handler: 'onToggleNavigationSize' }, { margin: '0 0 0 8', xtype: 'tbtext', bind: { html: '{company.name}' } }, '->', { iconCls:'x-fa fa-search', ui: 'header', tooltip: '搜索' }, { iconCls:'x-fa fa-bell', ui: 'header', tooltip: '消息' }, { iconCls:'x-fa fa-question', ui: 'header', tooltip: '帮助' }, { reference: 'mainprofile', iconCls:'x-fa fa-th-large', arrowVisible: false, ui: 'header', tooltip: '账户', bind: { text: '{account.realname}' }, menu: { items: [{ xtype: 'menuseparator' }, { text: '退出', handler: 'onLogout' }] } }, { xtype: 'image', cls: 'header-right-profile-image', height: 35, width: 35, bind: { src: '{avatarUrl}' } } ] }, { xtype: 'maincontainerwrap' } ] });