| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- 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: '<div class="main-logo"><img src="resources/images/default/logo-default.png"/><div class="logo-text">优企云服</div></div>',
- bind: {
- width: '{navWidth}'
- }
- },
- {
- margin: '0 0 0 8',
- ui: 'header',
- iconCls:'x-fa fa-navicon',
- id: 'main-navigation-btn',
- handler: 'onToggleNavigationSize'
- },{
- reference: 'mainprofile',
- arrowVisible: false,
- ui: 'header',
- bind: {
- tooltip: '{company.name}',
- text: '{company.name}'
- },
- menu: {
- items: [{
- xtype: 'menuseparator'
- }, {
- text: '退出',
- handler: 'onLogout'
- }]
- }
- },
- '->',
- {
- iconCls:'icon-usoftchina',
- ui: 'header',
- tooltip: '优软云'
- },
- {
- iconCls:'x-fa fa-question',
- ui: 'header',
- tooltip: '帮助'
- },
- {
- ui: 'header',
- bind: {
- tooltip: '{account.realname}',
- text: '{account.realname}'
- }
- },
- {
- xtype: 'image',
- cls: 'header-right-profile-image',
- height: 35,
- width: 35,
- bind: {
- src: '{avatarUrl}'
- }
- }
- ]
- },
- {
- xtype: 'maincontainerwrap'
- }
- ]
- });
|